Changing concurrent list to concurrent set by using concurrent dict