ImageScene: testing: Improved the way joinRenderingAllTiles() determines which thread is currently running.
(Fixes a deadlock in the multi-image ilastik GUI test suite.)