Add function to get SlurmdSpooldir config param
Add CPU frequency lock mechanism

This should address various race conditions in setting CPU frequency,
especially as relates to gang scheduling (e.g. cancelling or terminating
jobs while near changing the running job).