efi_loader: fix memory allocation on sandbox