[PATCH v2 12/35] qemu: backup: Move 'virCheckFlags' to top level functions