Bug in Lock() method causing it to wait indefinitely

I noticed a bug when using Lock() method which causes it to wait indefinitely listening on an uninitialised channel. Very quick fix which is compliant with the zookeeper recipe spec http://zookeeper.apache.org/doc/r3.4.5/recipes.html#sc_recipes_Locks