Courts choke as NSW prisons hit 112% capacity