[PATCH v2 11/19] qemu: block: Implement helpers for dealing with bitmaps during block commit