Make the pthread cond wait in the getwork scheduler a timed wait in case we miss a wakeup.