thread-safe UniqueQueue