ISPN-4424 Synchronize updating cache entry and making a copy
ISPN-4424 Synchronize updating cache entry and making a copy
- making the CacheEntry immutable is not enough, the whole CacheEntry hierarchy needs to be made immutable
- using clone is simpler that making the hierarchy immutable
Change ReplicatedCHFactory to only replace leavers in updateMembers()

Uneven primary ownership should be dealt with in rebalance() only.
Delegate the isBalanced() check in DefaultRebalancePolicy to the CH factory

Allows waitForRehashToComplete() to work even if the CH factory allocated
less than numOwners owners to each segment.