core: Unset DYLD_LIBRARY_PATH if setuid/setgid [GH-2243]