Small fix to Lock.prototype.release