Made Registry<> and RegistryWithPred<> thread-UNSAFE