Removing race condition in shuffleInstances due to premature .clear() of

virtualHostnameMap (needed by getter APIs).