Fix memory pressure issue with StaticGeometryPerMaterialBatch

We were never assigning the scratch variable we use to store the material in `StaticGeometryPerMaterialBatch`, which caused us to create a new material every frame.