Somewhat amazing that our solution to "idiot bum-rushing the cockpit and crashing the airplane" was to make it completely impossible to storm the cockpit in the circumstance where the idiot who wants to murder everyone is the pilot. Flawless logic, FAA.
That would be why the FAA has a rule that there must always be at least two people in the cockpit if the door is closed. In the US when a pilot needs the rest room a flight attended will take the pilots place (and usually leave the door open while watching it at that).
As the other person commented: instances of pilot suicides like this occurred outside the US, not under FAA justification.