Use enums for work unit types and phases
This avoids repeating the strings many times throughout the codebase, as
well as in the produced bundles. It also improves the DX of finding
references of specific work unit types or phases.
Resolves https://github.com/vercel/next.js/pull/81577#discussion_r2205632688