[PATCH v4 1/4] efi_loader: split unrelated code from efi_bootmgr.c