Call `select' for interrupted `connect' rather than creating new socket (Bug#5173).