Clear the memory limits on the sandbox during state preservation

State preservation uses the sandbox for Lua string escaping.  If
the sandbox memory usage is very close to the limit serialization
can fail.