etcdserver: refactor isMembersEqual