Fixed a problem where jobs in a routing queue no longer
route if pbs_server is restarted. TRQ-1597
TRQ-1608. Fix a deadlock due to the reroute_job_mutex not being used properly in the hierarchy. The locking order should be reroute_job_mutex, then the all_queues, then the queue.
Merge https://github.com/actorquedeveloper/torque