Replace deprecated cds::lock::scoped_lock with std::unique_lock