What about the Germanwings incident where the co-pilot deliberately crashed the aircraft after locking the Captain out?
Since then, many airlines insist on minimum 2 people on flight deck at all times. So, when one needs the lav-a cabin crew must remain on the FD until the other crew returns.