Update imgproc_canny.cl

Reordering condition checking.
Fixed a missing barrier.
Merge pull request #1677 from pengx17:patch-1