TRQ-3001. Fix a case of a job file sticking around.

This happens when there are multiple threads trying to clean up a dependent
job that can no longer run. This change makes it so TORQUE notices that multiple threads
are trying to accomplish the same cleanup and stops the extra efforts.