Rewrite KCodecs::codecForName to take a view as argument
This avoids the allocation in the previous const char* overload, and the additional potential allocation for the toLower() call.
While at it, also remove the mutex-protected heap allocated codec hash, that predates C++11 semantics and can be done easier nowadays.