CNAPI-467 - minor changes from CR.
CNAPI-467: make check
ZAPI-578, ZAPI-579 - hit wfapi less often for jobs with lower priorty,
and also make it less likely for multiple jobs to enter the critical
section (sadly, it's still possible, but we'll probably need a proper
locking service to avoid this). Also document this limitation.