lua: fix stack leak in ubus method handling