Hold OpenCL function pointers thread locally