[libvirt] [PATCHv10 2/6] clean up At(De)tachDeviceFlags() for consolidation.