Interesting question.
I would guess that the answer is "no". Animal traps based on some kind of triggered action probably predated the keyed lock.
(Maybe the lock could still get credit for the logical AND?)
(Maybe the lock could still get credit for the logical AND?)