lock out

Intermédiaire (B1) neutral

To stop someone from getting inside somewhere by locking the entrance.

"I locked myself out of the flat and had to call a locksmith."