Add synchronisation while using iterators, suspect memory visibility problems are causing test failures.