Use pmcd_wait to fix pmcd/pminfo/signal races in qa/861