etcd: fix leaking fds