code: func (g *metadataGraph) freeze(c context.Context) {
  	g.root.freeze(c)
  }
docs: // freeze finalizes graph construction by calculating all PrefixMetadata items.
  //
  // The graph is not modifiable after this point, but it becomes traversable.
  // The context is used only for logging.