imgact_elf: Optimize pagesizes[] loop
Except for elements whose value is zero, the elements of pagesizes[] are
always sorted in increasing order, so once a loop starting from the end
of the array has found a non-zero element, it has found the largest
valued element and can stop iterating.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D46215