handle. This used to be documented as being index -2 but now it
seems to be index 0. As this is not guaranteed we need to look up
the real handle value for PROG_HANDLE and skip it when interating
through all the DSOs. Fixes infinite recursion on HP-UX in the
getenv() replacement.