Mutex Guards!

std::unique_lock added in place of mutexes, mutexes stored in heap.
Tiny change