Fix intermittent test failures from race condition

```
Failed tests: 
  ConcurrentStructuresTest.testThreadPoolsWithSameNameIsNotBad:98 expected:<foo-[]0> but was:<foo-[2-]0>
```