[libvirt] [PATCH v2] Improve on virAtomic implementation