Blue Origin interview question

What is a lock in multi-threading programming?