Fix lock method to work with etcd 0.3