I remember that incident. My recollection is that the subject pilot waited until the other members of the flight crew had left the cabin, he then locked the cabin door. When the other crew members realized the situation, they tried to re-enter the cabin but the security locking system was too great for their efforts.
The horror that must have gripped the helpless crew members and passengers had to have been off the charts.