'lua_dump' signals to the writer function the end of a dump, so that is has more freedom when using the stack.