[TCP]: Move prior_in_flight collect to more robust place