Use range-based for loops in ASan, TSan and MSan