Fixing slow TCP traffic over Tailscale

When making my home NAS reachable via Tailscale I experienced very slow TCP speeds, but only when uploading from the NAS and only when going through the Tailscale tunnel.