use the open state file for refresh when possible
use the open state file for refresh when possible

Only open a new file descriptor for RefreshState if we haven't written a
state, and don't have the correct state open already. This prevents
windows from failing to refresh a locked state.

svanharmelen/terraform,youhong316/terraform,pdecat/terraform,tpounds/terraform,luis-silva/terraform,hartzell/terraform,brandontosch/terraform,asedge/terraform,yanndegat/terraform,justnom/terraform,apparentlymart/terraform,justnom/terraform,fatmcgav/terraform,svanharmelen/terraform,brandontosch/terraform,pdecat/terraform,tpounds/terraform,hashicorp/terraform,tpounds/terraform,VladRassokhin/terraform,gechr/terraform,nlamirault/terraform,rnaveiras/terraform,mattray/terraform,brandontosch/terraform,luis-silva/terraform,asedge/terraform,heimweh/terraform,pryorda/terraform,nlamirault/terraform,asedge/terraform,VladRassokhin/terraform,pdecat/terraform,drebes/terraform,fatmcgav/terraform,justnom/terraform,donaldguy/terraform,heimweh/terraform,gechr/terraform,youhong316/terraform,luis-silva/terraform,pradeepbhadani/terraform,heimweh/terraform,donaldguy/terraform,fatmcgav/terraform,iljaskevic/terraform,rnaveiras/terraform,ewbankkit/terraform,hashicorp/terraform,apparentlymart/terraform,rnaveiras/terraform,tommynsong/terraform,iljaskevic/terraform,fatmcgav/terraform,ewbankkit/terraform,asedge/terraform,hashicorp/terraform,tpounds/terraform,mattray/terraform,ewbankkit/terraform,nlamirault/terraform,tommynsong/terraform,hartzell/terraform,mattray/terraform,VladRassokhin/terraform,heimweh/terraform,drebes/terraform,mattray/terraform,iljaskevic/terraform,brandontosch/terraform,tommynsong/terraform,hartzell/terraform,brandontosch/terraform,pryorda/terraform,svanharmelen/terraform,donaldguy/terraform,kl4w/terraform,youhong316/terraform,justnom/terraform,pryorda/terraform,heimweh/terraform,pdecat/terraform,yanndegat/terraform,yanndegat/terraform,gechr/terraform,apparentlymart/terraform,pradeepbhadani/terraform,hartzell/terraform,luis-silva/terraform,ewbankkit/terraform,apparentlymart/terraform,drebes/terraform,donaldguy/terraform,VladRassokhin/terraform,kl4w/terraform,kl4w/terraform,iljaskevic/terraform,yanndegat/terraform,youhong316/terraform,apparentlymart/terraform,svanharmelen/terraform,pradeepbhadani/terraform,drebes/terraform,kl4w/terraform