In snapshotImpl() of class MutableCounterInt/MutableCounterLong, fix a sync bug.
We update some mutable metrics in seperate thread periodically to validate our system