trq-2267 another potential deadlock.
TRQ-2237 unlock a mutex before trying to lock the job mutex.