ocl: multi-threading: fix bug in intialization
ocl: multi-threading: opencl buffer memory guard
Merge pull request #1856 from alalek:ocl_fix_mt