Pilot locked in lavatory causes security aler...