PYTHON-436 When checking the request socket, acquire the semaphore
before opening a new connection.