Fix slurmctld deadlock in job_submit plugin