4f354c27b7
The desktop's main serve process opens memory_store.db for every known profile and nothing closed those connections before delete_profile's rmtree — on Windows the open SQLite handles make the removal fail with WinError 32 for both the CLI and the DELETE /api/profiles/<name> route (#88347). POSIX unlinking of open files hid the same leak. MemoryStore.close() is refcount-driven, so a live holder keeps the handle forever; add MemoryStore.release_all_under(directory) to force-close every shared connection under a directory, and call it in delete_profile after stopping the profile backends. Inside serve the handles live in that very process and get released; from the CLI it is a no-op. Fixes #88347