Fix scoped lock in ColorHistogram and HoughCircles