[libvirt] [PATCH] logging: ensure pending I/O is drained before reading position