Update event handling to workaround event handling error in nvidia opencl runtime