S&T interview question

What is a lock? (not a deadlock)