Simplify resource state tracking in snap
Only set the state when we know it for sure. Set it for every package while at it.
BUG: 390482