efi_loader: add checking for incorrect use of EFI_ENTRY/EXIT