Have a read of this: some pretty scary circumstances:
Report: Air India Express B738 over Arabian Sea on May 26th 2010, inadvertent nose dive
One can only imagine what would have happened had the captain been unable to regain access to the cockpit ...
Bear in mind that this incident occurred only four days after the Mangalore crash.