This commit allows to initialize and clear a Main struct which allocation is handled separately. There is no behavioral change expected from this commit. This is a requirement for incoming rewrite of the PartialWrite code (see #122061 and !122118). Pull Request: https://projects.blender.org/blender/blender/pulls/122118