tcp: fix for zero packets_in_flight was too broad