etcdserver: use Action to fix possible data race