sim: sim_do_commandf: fix call to va_end [PR sim/19273]