Use placement delete to destroy the shared_ptr allocated by Lua.