ocl: add suport for initialization from user-provided OpenCL handles