better sharing of metric registry across threads