We should prefer using java.util.concurrent (see warning here: https://github.com/scala/scala/blob/132a0587abf611e6e0b93c95a3b1b118619b849f/src/library/scala/collection/mutable/SynchronizedMap.scala#L27). There is a method to make a concurrent set from any concurrent hashmap