CSE Distributed Etcd lock

example

lock, _ := etcdsync.Lock("/test",-1, true)
defer lock.Unlock()
//do something
g += 1
fmt.Println(g)