Add util for locking critical sections with 1..n keys

Also we shouldn't use US/Pacific-New, see http://catless.ncl.ac.uk/Risks/13.87.html#subj1