tcp: update congestion state first before raising cwnd