Emergency lockdown
The emergency lockdown was a feature on areas of a ship that was intended to lock personnel out of a dangerous area.

In 2374, Alexander Rozhenko accidentally tripped an emergency lockdown on the  locking himself inside a corridor, much to his embarrassment and the crew's amusement. ()
Security