[PATCH 17/27] qemumonitorjsontest: Refactor chardev hotplug testing