lua-factory: Fix possible crash on exit

GResource isn't a GObject, so use the correct unref function.