The distribution of Lyman-limit absorption systems during and after reionization