OCL: Optimize OpenCL version of function reduce

**WIP**

Change global buffer to local

 check_regression=*OCL*Reduce*
 test_filter=*OCL*Reduce*
 test_modules=core
 build_examples=OFF