etcd: fix a race in peer.go