Refactor etcd_{put,set}_one to handle locks (not implemented yet).
Signed-off-by: Jeff Darcy <jdarcy@redhat.com>
Add lock/unlock functionality.

Signed-off-by: Jeff Darcy <jdarcy@redhat.com>