LPS-43111 Move lock check to the remote service (as in deleteThread)