Fixed a problem where threads would not exit when idle. This would lead
to an overall large memory size for pbs_server. TRQ-2498