Also enforce experimental features when there's no next config file (#81679)
When running `next build --debug-prerender`, we also want to set the experimental features even if there is no next.config.js file present.
This PR also fixes the `cloneObject` function to better handle nested optional object properties, and we're now also freezing and cloning the default config before applying changes to it.
> [!NOTE]
> This PR is best reviewed with hidden whitespace changes.