Fixing deadlock errors (ShufflerImpl)