Remove references to old Lua API from mod.yaml files

Fixes #6811