PYTHON-550 changes to support maxTimeMS