fn write_record(store: &Store, record: Value) -> SavedExpand description
Store record (the open windows) as the open workspace’s windows, with
its closed windows (session_closed::with_closed), unless that is what is
stored already. Takes no lock; callers hold WRITE_LOCK.