Fix wrong errno reported by connect on Solaris

_REENTRANT allows errno to use thread local storage, so that correct errno value are reported by connect in multi-threaded environnement (nut-scanner).