ocl: corner*: fix memory access in kernels; change error check to relative
Merge pull request #1736 from alalek:ocl_fix_corner_memory_access