T-API: optimized cv::calcHist

check_regression=*OCL*Hist*:*OCL*CascadeClassifier*