Change getdladdr to always use dlopen, dlsym and then dlclose.