Handling lock requests