PackageCompiler hangs while compiling nonincremental system image on Julia v1.11

I think that should serve as a MWE. The only things left for reporting an issue is sharing the exact text of your versioninfo(), the 1.10 threading warnings, the 1.11 errors, and relevant descriptions (do they occur sporadically, randomly, condtionally, etc). The rest should be investigated by people who know PackageCompiler or Julia internals.