Thread-safe iterators fix.
Fixes:
Exceptions with thread-unsafe object iterators.