Follow-up from #512026: Move $form_state storage from cache to new state/key-value system.
As you can see in the added DUBT test there, I need to take special care to restore the uid of the global user because that is, in fact the user of the parent site.
We could either completely unset the global user and require that tests which rely on it's existence add it themself or mock it using a stdClass.