PYTHON-747 Fix TypeError in Pool.__del__ during shutdown.