Create default model permissions before running application migrations

You are running into #29843.

A workaround might be to use Permission.objects.get_or_create instead or to call django.contrib.auth.management.create_permissions manually prior to doing Permission.objects.get instead by passing (apps.get_app_config('auth'), using=schema_editor.connection.alias, apps=apps).