e2e: fix race in ranging test tables
e2e: fix race in ranging test tables

Fix https://github.com/coreos/etcd/issues/5598.

race conditions were detected in iterating the test table
because the go func closure doesn't receive the 'puts' index
in the argument. This can cause the test to run wrong put
operations.

mqliang/etcd,gyuho/etcd,vimalk78/etcd,StorReduce/etcd,lumjjb/etcd,etcd-io/etcd,mkumatag/etcd,li-ang/etcd,fanminshi/etcd,armstrongli/etcd,mqliang/etcd,xiang90/etcd,sebrandon1/etcd,akauppi/etcd,purpleidea/etcd,cockroachdb/etcd,rchicoli/etcd,zaphod-concur/etcd,ajityagaty/etcd,linuxcer/etcd,westhood/etcd,cockroachdb/etcd,yudai/etcd,coreos/etcd,lorneli/etcd,a-robinson/etcd,heyitsanthony/etcd,nekto0n/etcd,endocode/etcd,luxas/etcd,tguangch/etcd,CrazyJvm/etcd,jonboulle/etcd,purpleidea/etcd,OyTao/etcd_learning,akauppi/etcd,bdarnell/etcd,li-ang/etcd,ravigadde/etcd,plasticbox/etcd,ktateish/etcd,mkumatag/etcd,mickep76/etcd,mqliang/etcd,tguangch/etcd,glycerine/etcd,joshix/etcd,westhood/etcd,heyitsanthony/etcd,gyuho/etcd,handsomesun/etcd,insequent/etcd,endocode/etcd,glevand/coreos--etcd,bluebreezecf/etcd,rnaveiras/etcd,swingbach/etcd,sinsharat/etcd,YuleiXiao/etcd,hongchaodeng/etcd,sebrandon1/etcd,lumjjb/etcd,bdarnell/etcd,handsomesun/etcd,nekto0n/etcd,chipironcin/etcd,wantonsolutions/dinv-etcd,mkumatag/etcd,a-robinson/etcd,ajityagaty/etcd,linuxcer/etcd,YuleiXiao/etcd,glevand/coreos--etcd,joshix/etcd,glycerine/etcd,swingbach/etcd,xiang90/etcd,zaphod-concur/etcd,plasticbox/etcd,dannysauer/etcd,etcd-io/etcd,hongchaodeng/etcd,jonboulle/etcd,ktateish/etcd,fanminshi/etcd,rnaveiras/etcd,jlamillan/etcd,sofuture/etcd,yudai/etcd,ajityagaty/etcd,wantonsolutions/dinv-etcd,coreos/etcd,mickep76/etcd,StorReduce/etcd,sofuture/etcd,etcd-io/etcd,wantonsolutions/dinv-etcd,qqsun8819/etcd,CrazyJvm/etcd,rchicoli/etcd,whuwxl/etcd,visheshnp/etcd,insequent/etcd,jlamillan/etcd,rnaveiras/etcd,visheshnp/etcd,bluebreezecf/etcd,dannysauer/etcd,armstrongli/etcd,whuwxl/etcd,sinsharat/etcd,vimalk78/etcd,luxas/etcd,chipironcin/etcd,OyTao/etcd_learning,ravigadde/etcd,qqsun8819/etcd,lorneli/etcd