**Issue:** the implementation of `SingletonBase` in `patcher.py` is not thread-safe and might cause issues for parallel execution. Notes: - thread-safe implementation [here](https://refactoring.guru/design-patterns/singleton/python/example#example-1) causes segmentation violations without any further adaptations