He WILLFULLY engaged the ‘lock’ lever (located in between the pilot’s seats) for the cockpit door, the entire time of the aircraft’s descent.
Maybe he got woozy and passed out an accidently leaned on that switch?
/s