For ENG-5489, remove locking from StatsAgent that causes deadlocks regis...

...tering stats at startup