vkr: random refactoring and fixes
Refactor the messy vkr_dispatch_vkAllocateMemory
and avoid a segfault if some venus driver impl makes calls to physical device/group enumerations out of order (this is to be fixed to relax the order requirement).
Refactor the messy vkr_dispatch_vkAllocateMemory
and avoid a segfault if some venus driver impl makes calls to physical device/group enumerations out of order (this is to be fixed to relax the order requirement).