lock out of

lock someone or something out of something

 and lock someone or something out
to lock something to prevent someone or something from getting into it. Someone locked me out of my office. Who locked out the office staff this morning?
See also: lock, of, out