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