[libvirt PATCH v3 02/32] qemu_block: extract block commit code to separate function