fixed a possible endless loop in tcp_new_port() if the number of active PCBs exceeds the number of available ports;