opencl: fix border handling in lens correction module

also apply similar changes to clipping module

(cherry picked from commit d76a4eefd31b63bb674224096c113a39ddd817fb)