Make UniqueSet concurrency-safe