Fix bugs in Work Offload

Some minor signalling bugs were exposed in work offload. Fix those,
and make the test a smidgen more reliable. The test itself will need
to poll for completion of the thread, otherwise the test results will be
wildly unpredictable.