Fix lock_many race condition

That's the server log; it doesn't show the error messages themselves, so you wouldn't see the "error locking nodes" string. As for the exception, it is caught in the block above...