Fixed bug in user-defined stencils on CPUs

The kernel that was generated for CPU devices worked in assumption that work
group on CPUs always contains single thread, and the assumption was not true
for quite some time already.

Thanks to Pekka Jääskeläinen from POCL project for pointing this out!