Actually it’s possible there was no stall inside a larger room, and it was just the locked restroom. In that case there should have been a key to open it from the outside. If the door lock did not have a key then they will win the case, which will likely never go to trial.
Bingo! I have been in old public restrooms like that. Never considered a rescue might be needed