TRQ-2627. Fix a crash due to a race condition in pbs_mom.

Both the jobexec_t struct and the task struct had a direct pointer to the job. Replace this
with the job id so that they get the job through mom_find_job. This removes some rare race
conditions that lead to crashes due to corrupted pointers.