[libomp] Fix hang when a fatal error is raised before library registration (#215988)

Uncovered by debug-build testing, not triggered for non-debug builds due
to absence of KMP_DEBUG_ASSERT.

Claude assisted with this patch.

GitOrigin-RevId: a6d40b40c42d95963f915234851855f456a55b53
1 file changed