tcp: avoid setting cwnd to invalid ssthresh after cwnd reduction states