ChatGPT - Understanding database locks