PYTHON-436 reset the semaphore when resetting the pool