qapi/commands: Optionally generate trace for QMP commands