Remove atomic.Ref, replacing it with scala-atomic dependency