feat: Environment.realizeConst (#7076)

This PR introduces the central parallelism API for ensuring that helper
declarations can be generated lazily without duplicating work or
creating conflicts across threads.
20 files changed