HPCC-10775 Set job priority for multiple jobs in one ESP call

The existing code sets one job priority per ESP call. In the new
ECLWatch UI, multiple jobs may be selected to change job priority.
Multiple ESP calls have to be sent at about the same time. After
several successful calls, ESP does not respond. That is because
multiple threads try to access the same job queue at the same time.
One thread locks the job queue before previous thread updates the
priority and releases the lock. This fix moves the code of lock()
and updatePriority() into a critical section. A thread cannot
access the code before another thread leaves the code.

In this fix, I also add the code to support batch function which
allows to set job priority for multiple jobs in one ESP call.

This fix also depreciates two variables from SetJobPriority
request since they are not used.
HPCC-10775 Fix typo
Merge pull request #5386 from wangkx/h10775

HPCC-10775 Set job priority for multiple jobs

Reviewed-By: Gordon Smith <gordon.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>