tcp: refactor congestion event handling