Add tests for parallel processing of work.

Introduces infrastracture for delaying when we complete
work, to simulate multiple threads operating on work in
parallel, and use it for some new tests.

Test: bit CtsJobSchedulerTestCases:.EnqueueJobWorkTest

Change-Id: I19d6b46d69532731e579dc65ff8715605a3a313c
2 files changed