T-API: minor optimization of cv::LUT

check_regression=*OCL*LUT*
test_filter=*OCL*LUT*
test_modules=core
build_examples=OFF