C++ implementation of "thread-safe" queue