Make the pthread cond wait in the getwork scheduler a timed wait in case we miss a wakeup.
We shouldn't block on no work situations directly from the getwork scheduler itself.