Due to the 9/11 incident, there was a special lock that was placed inside the pilot's cabin. The lock is design to keep everyone from getting in the roosterpit. This is what the co-pilot used to lock the pilot and flight attendants outside the cabin so he could crash without being overrun. The main pilot apparently disobeyed protocol by not sending a flight attendant to the cabin while he was taking a leak.