When a new node joins the cluster, the master should initiate a rebalance and create a lock that only gets released when the rebalance completes.