Don't refresh in state.pkg

Fixes #16271
Merge pull request #16728 from cachedout/issue_16271

Don't refresh in state.pkg