Use onTransactionIdle() for page invalidations when not using the job queue.

* This will do the page_touched UPDATE in autocommit mode to avoid
  locking a bunch of titles for some unknown amount of time that
  depends on how big the transaction is.

Change-Id: I6ec16a73c11fbf19c24d2b7fe7d01f91b9dcf33a
(cherry picked from commit 9906460241b18b92ece1890dd6cf380c19785339)
Merge "Use onTransactionIdle() for page invalidations when not using the job queue." into wmf/1.22wmf2