Fix a potential bug of ocl::CannyBuf.

The program would crash if release is called twice.