CrashRecoveryContext: Add RunSafelyOnThread helper function.