Milestone: after this patch, we only use 'unsafeGlobalDynFlags' for the state hack and for debug in Outputable.