add NewRuntimeMetricsLock [#78516296]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>