minor ocl.cpp refactoring

fix for cv::LUT and cv::transpose
Merge pull request #2252 from ilya-lavrenov:ocl_ref