QMP: add get_events(wait=True) option