Fix localid()

If you let `locked` generate an id for you, `Node.prototype.localid` currently returns `undefined`.