monitor: Reduce handle_qmp_command() tracing overhead