some changes in workqueue to support smart retry handler

Currently the workqueue considers jobs in created, executing and the *failed and cooloff states to determine whether to pull more work into WMBS.
Change this to only look at created and executing jobs to allow the smart retry handler to function (it can leave many many jobs in cooloff).