Pass the parameters to goroutine to avoid relying on a go 1.22 fix.

Bug: 335718784
Test: CI
Change-Id: Iae55e59a58101bc373666455ae4f2b6146c1abca
1 file changed