How in the world could guests be locked in to their hotel rooms? That sounds like a major unacceptable design flaw and fire hazard.
Hopefully the local fire chief has shut the hotel down.
Anyway, at least in some countries, this is pretty common. Not that's it good. But, common? Yes.