onNeedSaveResume

Invoked (off-lock) when the fast-resume state has gone stale and should be persisted: the torrent finished or was paused. The app responds by calling saveResumeData and writing the bytes (the port of libtorrent's save_resume_data / NEED_SAVE_RESUME).