Prevent deadlock condition in recently modified slurmctld locking