Dup socket fd before connecting