Refactor box_lua.cc to avoid use of palloc()/ptruncate().

Don't use palloc()/ptruncate() in box_lua.cc.
This is a pre-requisite patch for tuple-format.
tuple:transform() method remains to be fixed in a separate patch.