When the chief inspector of Scotland's prisons visited Glenochil in February, the 668-capacity jail was holding 770 inmates.