Fixes a few racy tests.
Tests were racy.
Run racy tests with -race, see no more race.
-race
#30835 (closed)