Cluster: set node->slaveof correctly when a node state is updated.