The same situ happened with Airliner Captain too.
Air India From UAE to Kerala on the way over Arabian sea the Captain left his seat for toilet and the co-pilot was not so experienced consequently the plane dived nose down several thousand meters until captain could unlock the cockpit door which was locked after him !