Modify slurmctld data structure locking to interleave read and write locks

Modify slurmctld data structure locking to interleave read and write
locks rather than always favor write locks over read locks.