[Fix] Bugzilla #18182 - ConcurrentQueue<T>.TryPeek() is not thread safe