main: not use loop variable in goroutine in loop body

Because loop variable are reused in following loops.