OCL: fix multi-threading support