Core/NetworkIO: Set non blocking mode on sockets properly