[riscv-port] Integrated: 8279826: riscv: Preserve result in native wrapper with +UseHeavyMonitors