auto_expand_replicas causing very large amount of cluster state changes when a node joins or leaves the cluster

Closes #3399