T-API: optimization of cv::reduce

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