[Parser] Fixed setWorkingDims for kernels with barriers