OpenCL: fix test for lack of names in release builds