Fix bug in lock() which was causing it to wait on an uninitialised channel when node doesn't exist.
Merge pull request #10 from domwong/master

Bug in Lock() method causing it to wait indefinitely