to lock out - Something is locked and you cannot get into it, so it is locked and you are out (outside). You lost your key at the pub and the door to your house is locked, you are locked out (outside). You could also lock your spouse out of the house if you are angry. This is also commonly used for smartphones and computers in the same way. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.