Fix race

Fix all the data race in etcd except tests for mod.