CxxUtils: Add possibility of external locking to the concurrent hashmaps.
Add the possibility of external locking to the insert / erase methods of the concurrent hashmaps. This allows speeding up loops by avoiding having to acquire the lock each time. For example:
auto lock = set.lock();
for (const Key* key : keys) {
set.emplace (lock, key);
}