Thread Safety Analysis: move warnings on range-based for loops out of beta
and into -Wthread-safety.