OCL: Fix problems in LUT ocl kernel

Fix compile errors of LUT ocl kernel in some case.

check_regression=*OCL*LUT* 
test_filter=*OCL*Lut*
test_modules=core
build_examples=OFF