CLN: minor change in _consolidate_inplace (check if consolidated first, so that we can cheaply call this)