* Fix HostingWindowController allowing repeated requests to close while waiting for confirmation
* New virtual machine state preservation system with automatic save on close/quit and safe restoration
* Use visible directories for saved state storage for easier debugging in Finder
* Hide state restoration controls for unsupported Linux VMs
* Add app-level preference for what happens by default when attempting to close a running VM
* Use a custom sheet for VM close confirmation
* Improve VM close choice sheet
* Harden session storage against path traversal, fix race conditions in state coordination
* Implement support for managed preferences; allow disabling shared folders with managed preferences
* Implement managed preferences for USB passthrough, bridged networking, guest app, and microphone input
* Implement unified UI component for informing user about managed preference restrictions
The else branch for macOS guests was using the default cachingMode (.automatic),
which causes APFS space manager corruption under heavy I/O. Apply the same
.cached + .fsync fix that PR #332 applied to Linux guests.
Fixes filesystem corruption where write() returns EILSEQ (errno 92) after
sustained I/O workloads in macOS guest VMs.