We had a teacher who used to lock kids in the closet. (Middle school and high school kids)
I once locked my teacher in the closet through the lunch break. I was the last student out the door and the closet was right by the door. The teacher was in the surplus closet, and I just shut the closet door as I exited the classroom.
Somebody let her out when they came to class after lunch.