restorePendingChains
Restores all chains that were RUNNING when the app was last terminated. Call at app startup, after TaskMonitor.replayPendingEvents.
Parameters
chainProvider
A function that returns a TaskChain given its ChainProgress. The caller must reconstruct the chain from stored step IDs.