Replacer now skips null pointers in queues; std::mutex chosen as locking device, still not working properly