Use cl_mem_fence_flags as defined by SPIR/NVPTX.