SERVER-8786 further stability fixes to sharding/authConnectionHook.js