EpilogSlurmctld race condition/SEGV fix

EpilogSlurmctld pthread is passed required arguments rather than a pointer
to the job record, which under some conditions could be purged and result
in an invalid memory reference.
Merge branch 'slurm-2.5' into slurm-2.6