code: function(callback) {
          if (self._cxnState !== self.cxnStates.CONNECTED) {
            callback(new Error("(2) Error occurred while attempting to lock "+ name));
            return;
          }
          try {
            // client doesn't like paths ending in /, so chop it off if lockpath != '/'
            self._zk.mkdirp(lockpath.length <= 1 ? lockpath : lockpath.slice(0, -1), callback);
          } catch (err) {
            callback(err);
          }
        }
docs: ensure the parent path exists