Blue Origin Interview Question

What is a lock in multi-threading programming?