Fix slurmstepd core dump.
If <sys/prctl.h> is present name major threads in slurmctld.