translator/lua: Add :(un)lockvar support