Add some branching to validateStateAndProcessDBOperations to handle RawThreadInfos.
(Also snuck in a super minor type name change in initial-state-gate to wrap up all the Flow work in web)
As of this diff there should be no flow issues in web or lib, just need to fix up native (specifically migrations).
NOTE: CI is expected to fail. I got to a point in my local environment where all flow issues were resolved, but based on earlier fedback in the stack I'm breaking them down so things are easier to review.. even if that means that intermediate steps fail.
[skip-ci]
Depends on D10275