copy client pointer for keep-alive loop
copy client pointer for keep-alive loop

If a connection fails and attempts to reconnect after the keep-alive
loop started, the client will be pulled out from under the keep-alive
requests. Close over a local copy of the client, so that reconnecting
doesn't race with the keepalive loop terminating.

heimweh/terraform,pdecat/terraform,tommynsong/terraform,pryorda/terraform,ewbankkit/terraform,heimweh/terraform,pryorda/terraform,apparentlymart/terraform,pradeepbhadani/terraform,VladRassokhin/terraform,rnaveiras/terraform,ewbankkit/terraform,ewbankkit/terraform,heimweh/terraform,gechr/terraform,heimweh/terraform,heimweh/terraform,rnaveiras/terraform,hashicorp/terraform,pdecat/terraform,nlamirault/terraform,nlamirault/terraform,pradeepbhadani/terraform,pdecat/terraform,ewbankkit/terraform,VladRassokhin/terraform,nlamirault/terraform,apparentlymart/terraform,VladRassokhin/terraform,pradeepbhadani/terraform,tommynsong/terraform,hashicorp/terraform,pryorda/terraform,gechr/terraform,rnaveiras/terraform,pdecat/terraform,apparentlymart/terraform,gechr/terraform,apparentlymart/terraform,apparentlymart/terraform,VladRassokhin/terraform,hashicorp/terraform,tommynsong/terraform