etcdserver: refactor ValidateClusterAndAssignIDs