Misc updates

* Raise an exception to signal that a lock was not able to be acquired, allowing the caller to take appropriate action
* Introduce a small sleep between retries to avoid racing through all attempts.