block: vhdx, calculate number of BAT entries and allocate RAM for it

(minor end-of-night commit)

Warning: this is a commit in my 'working' repo, and will likely
         by rebased and squashed into a new branch before submission
         to qemu-devel.