Refactor `cleanJobStatusObjects` in gc thread.

This allows us to more easily make variants which (for example) remove only
jobs from a specific host (to take that host down for maintenance, for
example).

Change-Id: I0319debff8b3a224ba840fa92156ef961ca99bd2