[JobQueue] In addition to flushing any transaction, be sure to avoid new ones

* This probably only matters when jobs are not run via CLI scripts.

Change-Id: Ie04c8baac218f5df770388e17096dcb4f2eb9cba
(cherry picked from commit b4ca98b8e556cd984647f4ca692ef5d199a6f888)