ocl: workaround for subbuffer memory leaks