opencl: add event waiting support