loader: fix multiboot loading on UEFI
(cherry picked from commit 5e4279a8f35aa4b46debf728d3f743d64f15aaf8)