Fix for user stencil bug on MacOS X's OpenCL

Added local memory barrier.