Come on! Everyone knows that it's so easy to jump in the cockpit in the process of opening/closing of the door. Especially on the back of a FLight Attendant. Unless it is strictly prohibited for the passengers to line up by the toilet. I've never heard about such restrictions. And I never saw them observed, in case they exist somewhere