fix: should remove redundant code; ref value by luaL_ref with LUA_REGISTRYINDEX would be shared by lua_State(not thread).
fix: hung-up state value argument of callback function should be type of boolean.