Fix a race condition in ApplicationPool2_PoolTest.