Thread-depending connections handler, RuntimeRegistry
based on activerecord/runtime_registry