fun <E> LockFreeLinkedList<E>.toSet(): Set<E>
Collect all the elements into a MutableSet then cast it as a Set