Fix sent file transfer race condition on app recovery
Rearrange accessing inProgressTransfers, finishedTransfers, and partStats to allow graceful recovery on crash
Rearrange accessing inProgressTransfers, finishedTransfers, and partStats to allow graceful recovery on crash