Converting the methods of RebalancePartitionsInfo to be synchronized to solve a potential race condition leading to a NPE exception