Add env var SWH_MAIN_PACKAGE to initialize sentry_sdk with a release.
This enables tracking of issues by release/package version in sentry
(https://docs.sentry.io/workflow/releases/).
Also deduplicates code used to call sentry_sdk.init by making all our
init code go through the same function swh.core.sentry.init_sentry."