Related to #7130, this adds logic to retry native notarization up to three times if it fails for some reason. Since we're adding retries in various places, I added a new package under pkg for this purpose.