Fixed performance regression in ocl::checkError()

Spurious std::string objects were created from const char *, not optimized away by compiler.