Your worst humiliation is nothing more than someone else's momentary entertainment.
Embraer 145's have only one flight attendant. When one pilot leaves the flight deck, the flight attendant is required (FAA) to enter the cockpit and remain there until the crewmember returns. This is to ensure there is someone to open the cockpit door if the remaining pilot is incapacitated.
So the captain was trapped in the lav and the FO and FA were on the opposite side of the fortress door knowing only that he was missing and someone else was pounding on the door and shouting.
Good move on the part of the FO keeping the flight deck locked. Bad move on the part of the CA divulging divulging security procedures which are now in the press.