Save fastresume data only when needed. Improves shutdown when there are ...

...many torrents in the session. Also eliminates unnecessary disk writing.