target/riscv-011: Fix memory leak in handle_halt_routine()