[Concurrent] Implements IntervalSet::GetSnapshot().
[Concurrent] Use std::lock_guard instead of unique_lock as possible.
[Concurrent] IntervalSet can insert intervals.