Revert "do job tries update after releasing lock"

This reverts commit 0f4b906d48f6bc98b2938c5c535de3028245b0b8.