Factorize the code from file chapters handling.
Options dialog: Disable "Reset" when the INI is read-only.

Ref #3591.