What is a pattern?
A pattern is not different from any other code you use in your application. The only difference is that somebody said "this is now called [x] pattern" and then that name has been universally accepted. If I say "Visitor Pattern" to another developer, they might just know what I am talking about.
>
99% of programming solutions have not been named that way. What you describe in the question probably hasn't been, either.
Which reference to use?
Don't get me wrong - other people (I myself included) have run into this same problem and came up with this same solution. Maybe somebody gave it a name, but does that already make it a pattern?
What if everybody in a small company of 15 people adopted this name for it? What if everybody in a big company with 3000 programmers did? What if they wrote a blog post and 10 000 people adopted the name? It becomes a philosophical question of what to call a pattern and what not.
Ain't nobody got time for that, so my completely arbitrary, but pragmatic way to find out the name for a pattern is to check the wikipedia page for software patterns. There are 53 different patterns described there. If it isn't in that list, I would not have any expectation that another programmer would know what I'm talking about when I utter the name. And that, IMHO, disqualifies it from being called a pattern.
Why even
Normally I would ask what you plan to gain from this anyway. In most cases, the answer amounts to "not much", but you already explained your particular goal for this in a comment:
I guess my question is, if I searched for it on npm, what keywords would I use?
Normally, I would say that this solution will always be custom-tailored to your end goal, plus it's not a big thing so you can just quickly code it yourself. But npm isn't "normally", npm has a package "is-odd" to find out if a number is odd.
There might be no universally agreed upon pattern name for this, but you might find packages if you search for "interlock", as that is the name for the engineering principle behind this.
Additional Info
This answer is in the same vein as this one, asking about patterns more generally.