> Locking people in is a bad idea regardless of situation (and I am pretty sure it is illegal to do so against their will)
As an American I still find it weird that it is even possible to lock someone in: anyone I've asked has had stories about young kids locking themselves or their parents in or out of a room with no easy way to fix the situation (resulting in things like balcony jumping). I don't see the benefit in designing things that way.
However in the end you are responsible for your own safety. If you are in a room with a lock, make sure you don't lock yourself in. Locking people in is a bad idea regardless of situation (and I am pretty sure it is illegal to do so against their will).