register go state to lua registry.