threadsafe removal during iteration