net: Implement read-only protection and COW'ing of metrics.