qemu.tests: Handle QMP monitors in tests properly

Use `monitor.protocol` to detect QMP and other QMP monitor changes.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>