We can just trigger a logs buffer flush before handling the crash (similar to how we do it on sentry_close() now). Part of https://github.com/getsentry/sentry-native/issues/1398