archive/tar: replace os.MkdirTemp with T.TempDir
archive/tar: replace os.MkdirTemp with T.TempDir

Updates #45402

Change-Id: I296f8c676c68ed1e10b6ad1a17b5b23d2c395252
Reviewed-on: https://go-review.googlesource.com/c/go/+/309355
Run-TryBot: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>
Reviewed-by: Joe Tsai <7277d7402195d5c2006c89f45718cf82bb3e527f@gmail.com>
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>
Trust: Joe Tsai <7277d7402195d5c2006c89f45718cf82bb3e527f@gmail.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>

nawawi/go,nawawi/go,golang/go,nawawi/go,nawawi/go,CAFxX/go,CAFxX/go,cloudflare/go,cloudflare/go,cloudflare/go,CAFxX/go,golang/go,golang/go,nawawi/go,nawawi/go,cloudflare/go,golang/go,CAFxX/go,cloudflare/go,golang/go,CAFxX/go,CAFxX/go,nawawi/go,CAFxX/go,cloudflare/go,cloudflare/go,golang/go,cloudflare/go,golang/go,golang/go,nawawi/go,CAFxX/go