Cosmetic fixes
Avoid unnecessary total_work_inc in generating local work
Clean work pointers after one way usage functions
Avoid unnecessary deref now that it's done within discard_work
Clean up any work that may not have been used in the work scheduler