`DataTypeFactory::get` locks a mutex inside shared a context, there was a case when many threads were locked inside it

https://pastila.nl/?0043b3e6/c557368f4cf0eb87a3c6f2cc162bc693

It is not clear which thread locked the mutex for a long time. However, it may be possible to lock less inside `DataTypeFactory::get`.
{
    return shared->system_profile_name;
}
String Context::getFormatSchemaPath() const
{
    return shared->format_schema_path;
}
void Context::setFormatSchemaPath(const String & path)
{
    shared->format_schema_path = path;
}
Context::SampleBlockCache & Context::getSampleBlockCache() const
{
    assert(hasQueryContext());
    return getQueryContext()->sample_block_cache;
}
bool Context::hasQueryParameters() const
{
    return !query_parameters.empty();
}
const NameToNameMap & Context::getQueryParameters() const
{
    return query_parameters;
}
void Context::setQueryParameter(const String & name, const String & value)
{
    if (!query_parameters.emplace(name, value).second)
        throw Exception("Duplicate name " + backQuote(name) + " of query parameter", ErrorCodes::BAD_ARGUMENTS);
}
void Context::addBridgeCommand(std::unique_ptr<ShellCommand> cmd) const