Closes this state, pops to parent, and updates Render's current_state.
| sync_ancestors |
If true, reapplies ancestor tags over full ranges (see `update_ranges_from`). Use only at **block** boundaries — inline span closes must pass false (default) or the cost is per span again. |