Fix infinite UpdateJob

- Remove GLOBAL state from `SMWSQLStore3Writers::updateRedirects`
- Add `JobQueueDBIntegrationTest::testNoInfiniteUpdateJobsForCircularRedirect`

Relates to #606, [0], [1], #330, #297

[0] http://wikimedia.7.x6.nabble.com/MediaWiki-Job-queue-problem-tp5036690p5037600.html
[1] http://wikimedia.7.x6.nabble.com/dumpRDF-php-script-in-SMW-2-0-fails-problems-with-subobjects-and-redirects-causes-jobqueue-to-loop-tp5038930.html