pkg/proxy: Fix issue that would cause localhost to get stuck in TIME_WAIT per-connection.

@crosbymichael @discordianfish can you test? Thanks.

There's also another issue with first connections; I will address that in a second patch.

Fixes #7350

Also /cc @LK4D4