[libvirt] [PATCH 1/2] alloc: make VIR_APPEND_ELEMENT safer