fix #2696 (#2700)
fix #2696 (#2700)

Use an OpenMP critical section for clEnqueueWriteBuffer
microsoft/LightGBM,microsoft/LightGBM,henry0312/LightGBM,henry0312/LightGBM,microsoft/LightGBM,microsoft/LightGBM,henry0312/LightGBM,henry0312/LightGBM,henry0312/LightGBM,microsoft/LightGBM