Merge pull request #4261 from Donnerbart/maintenance-3.x

Fixed issue #4259
InternalPartition replica addresses should be updated atomically instead of one-by-one to avoid inconsistent partition table reads. Also there's no need to update addresses using a CAS since InternalPartition update methods are called under InternalPartitionServiceImpl.lock.
Fixed signed-byte problem in PartitionStateGeneratorTest.
Merge pull request #4269 from mdogan/partition-issue-mx

[backport] InternalPartition replica addresses should be updated atomically