You are only ‘locked’ in until you solve the clues to escape. The room won’t actually be locked and you may leave to use the restroom or in the case of an emergency at any time.  However, we do recommend that you use the restroom prior to beginning the game.