Raise in context manager if we could not acquire the lock