lock out of
1. To lock the doors or other entrances into some building or so that someone or something is unable to enter from the outside. In this usage, a noun or pronoun can be used between "lock" and "out." I can't believe she locked me out of the house, just because I drunkenly kissed some girl at the bar! The car comes with a new feature that makes it impossible to lock yourself out. The factory was shuttered overnight, the owners having locked out all of the employees.
2. To prevent employees from coming to work or performing their duties during a labor dispute. The factory gates were chained shut, a clear sign to the workers that the owners had locked them all out. All electricians in the union will be locked out of further work until the dispute has been resolved.
lock someone or something out of somethingand 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?