OCL: workaround for subbuffer memory leaks