Changed Spinlocks and SPINLOCKs to std::mutex. Store Stats inside a unique_ptr to avoid the copying of the lock.