fix for TRQ-1597. Job arrays needed to have the
ji_commit_done flag set in job_clone_wt. Also
fixed deadlock in queue_route where jobs with
ji_commit_done set to 0 were not unlocked.