[PATCH v6 01/10] qemu-img: Flush stdout before before potential stderr messages