Original: KaymeKaydex/go-vshard-router#73
In BucketDiscovery we call BucketSet that may have a different idToReplicasetRef and consistentView due to race. It would be more safe and convenient to work with the same idToReplicasetRef and consistentView during execution this function. The same thing stands for other methods.