[orc-rt] Fix memory leak in WrapperFunctionResult. (#156795)
Previously `Tmp` could have been left owning a heap-allocated buffer and
would not have freed it on destruction (since Tmp was a C
orc_rt_WrapperFunctionResult).
This patch removes Tmp and simply resets R before swapping it with
Other.R.