Fix one more issue from the merge.
Added mutex_mgr to attempt_delete and delete_whole_array
added mutex_mgr to ji_mutex for release_array_range
added mutex_mgr to ji_mutex for modify_array_range()
added mutex_mgr to ji_mutex of update_array_values
added mutex_mgr for ji_mutex to update_array_statuses
added mutex_mgr to check_exiting jobs for ji_mutex
Added a return if svr_find_job fails in close_quejob_by_jobid.
Fixed dependency issue. The test library needs to be built first.
Make one change to fix a unit test compilation issue. Also, fix a deadlock in the job exiting code caused by my changes yesterday.