[PATCH v3 04/10] x86, efi: Push EFI_MEMMAP check into leaf routines