etcdserver: fix captured value in tests