tcp: handle acks in close wait