Fix a deadlock introduced by the mutex managing code in job_route()