SPR-11103: Thread count doesn't need locking, instead should use an AtomicInteger

Thread count doesn't need locking, instead should use an AtomicInteger.

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.