OCL: workaround for Erode on Intel platform

Replaced min() with ternary operator.
Should be fixed by new driver for Intel HD Graphics, but no info when the next driver will be posted.