block: VHDX endian fixes

A handful of endian conversion fixes for VHDX.

Reported-by: Markus Armburster <armbru@redhat.com>
Reported-by: Paolo Bonzini <pbonzini@redhat.com>