qemu-char: Avoid qerror_report_err() outside QMP command handlers