analysis: explicit locking for pmode and pme parameters

We've found a repro case involving --no-wpp --pmode --pme --preset slower where
time starved worker threads get stuck in the findJob() routine and pushed off
the CPU in the mean time the master thread moves on to another CU. This caused
very hard to reproduce crashes.