qnx: Refactor the dl_iterate_phdr() fallback
qnx: Refactor the dl_iterate_phdr() fallback

To use a more accurate representation of the dynamic linker's internals.
This is a 1:1 port of my corresponding code from frida-gum.

frida/libunwind,frida/libunwind,frida/libunwind