Copy ocl::queryDeviceInfo interface from master to 2.4.

Affected functions surf.ocl, pyrlk.ocl and hog.ocl are updated with the change.