Make job queuing + queued_at an atomic action.

This hasn't (as far as I know) caused any issues, but I think of job
queuing + setting queued_at as a single action, so might as well make it
that way in code.