Using luaL_ref and luaL_unref to store string reference in registry table