SONAR-4156 Avoid unnecessary select when registering metrics at startup