debug: added more details to the error message "failed to acquire the lock".