#3292 visibleblocks thread safety. Had only impact on test code.