f9da9e8385
local_models._set_runtime_enabled (quickstart/activate/stop job threads) and profiles._disable_unselected_skills ran load_config -> mutate -> save_config without _CONFIG_MUTATION_LOCK, so the dashboard's debounced PUT /api/config autosave could erase their writes exactly like the routers this PR already fixed. Both spans now hold the lock. POST /api/model/set held the global lock across switch_model's catalog fetches / endpoint probes, stalling every other config writer for the duration of a network round-trip. The main-slot validation is split into _prepare_main_assignment (runs under the profile scope only) and the load -> apply -> save half runs under the lock. The Nous entitlement refresh (force_fresh) stays inside the write half: it must read the on-disk config it mutates, and it is bounded by the portal timeout.