OCL: Optimize OpenCL reduce function

don't merge
check_regression=*Reduce*
test_modules=core