state/remote: Don't hang in PersistState
state/remote: Don't hang in PersistState

We were calling from PersistState into RefreshState, but RefreshState is
protected by the same lock as PersistState and so the call would deadlock.

Instead, we introduce a new entry point refreshState which can be used
when already holding the lock.

nlamirault/terraform,heimweh/terraform,iljaskevic/terraform,mattray/terraform,VladRassokhin/terraform,apparentlymart/terraform,pryorda/terraform,nlamirault/terraform,rnaveiras/terraform,apparentlymart/terraform,pdecat/terraform,drebes/terraform,VladRassokhin/terraform,VladRassokhin/terraform,heimweh/terraform,luis-silva/terraform,VladRassokhin/terraform,gechr/terraform,luis-silva/terraform,youhong316/terraform,gechr/terraform,tommynsong/terraform,brandontosch/terraform,tpounds/terraform,pradeepbhadani/terraform,ewbankkit/terraform,hashicorp/terraform,rnaveiras/terraform,pryorda/terraform,iljaskevic/terraform,nlamirault/terraform,pradeepbhadani/terraform,tpounds/terraform,ewbankkit/terraform,brandontosch/terraform,iljaskevic/terraform,tpounds/terraform,ewbankkit/terraform,apparentlymart/terraform,youhong316/terraform,apparentlymart/terraform,gechr/terraform,drebes/terraform,hashicorp/terraform,luis-silva/terraform,apparentlymart/terraform,tommynsong/terraform,tpounds/terraform,pdecat/terraform,youhong316/terraform,drebes/terraform,pradeepbhadani/terraform,pdecat/terraform,ewbankkit/terraform,heimweh/terraform,pryorda/terraform,rnaveiras/terraform,brandontosch/terraform,mattray/terraform,mattray/terraform,pdecat/terraform,brandontosch/terraform,tommynsong/terraform,heimweh/terraform,luis-silva/terraform,mattray/terraform,brandontosch/terraform,drebes/terraform,heimweh/terraform,iljaskevic/terraform,hashicorp/terraform,youhong316/terraform