[PATCH 4/7] qemuDomainDetachDeviceLiveAndConfig: Refactor cleanup