solutions/max_kaskevich/6/sources/thread_safe_queue: rewrited queue.