CORE-5947: fix a problem with deadlocks that was occurring when multiple job updates arrived simultaneously