[libvirt] [PATCH 3/3] libxl: convert DefineXMLFlags to use begin/end API pattern