Merge pull request #4 from adaptivecomputing/4.2.0

Merge pull request #30 from actorquedeveloper/master
Merge from trunk Fix for TRQ-1447: Desadlock in server under load.
Fix a deadlock introduced by the mutex managing code in job_route()
Fix a crash in get_jobs_array(), if the job has disappeared, then we need to make sure we have a valid array before attempting to unlock it.
Remove an unnecessary mutex manager.
Wrap a log_event in {} as was intended originally but not done correctly.
changed mutex locking function calls to use LOGLEVEL and not 0
Merge branch '4.2.0' of https://github.com/actorquedeveloper/torque into 4.2.0
TRQ-1602. Modified pam_pbssimpleauth.c to remove compile time
error when using --with-pam
Fix a g++ error with --enable-shell-use-argv
Merge pull request #38 from actorquedeveloper/4.2.0

4.2.0
Merge changes from upstream/4.2.0.