make stats mgr thread safe
stats manger should be thread safe it is desirable to be lock less (statistics for each thread), and only when merging data, the functions should have (if any) performance impact (use lock less data structures or read/write locks)
please review !592 (merged)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information