Fix connect in multi-threaded environnement on AIX