Bail early if another script is queueing jobs

If another script is queueing index build jobs for the same wiki then it'll
wait for them to empty so the current execution doesn't have to.

Change-Id: I3b5994cdb00406ee6b6889f4680e86822364daf4