ocl: memory cleanup workaround: clFinish() before clReleaseMemObject() + 64kb memory guard
Merge pull request #1752 from alalek:ocl_memory_cleanup_workaround