At Memphis airport a couple years back, our regional jet was late coming in from YYZ. It was so late, that apparently no one told airport security and they had shut the security gates to exit the main terminal corridor. Eventually we located a guard (on the other side of the gate) who re-opened them.