Ensure devtoolsOptionsUri points to a served extension (#10088)
* Ensure devtoolsOptionsUri points to a served extension and prevent
recursive directory creation.
This ensures that `handleExtensionEnabledState` checks that
`devtools_options.yaml` matches the actual path of an extension that
is currently served by `ExtensionsManager`, resolving symbolic links on
the parent directory and rejecting `devtools_options.yaml` if it is a
symbolic link.
This also ensures that `DevToolsOptions._lookupOptionsFile` does not
recursively create directories or follow symbolic links if the parent
directory does not exist or `devtools_options.yaml` is a symbolic link,
preventing `api/extensionEnabledState` from creating directories or
writing files outside served extension package roots.
* Address code review comments
* Iterate over extensionsManager.devtoolsExtensions.
* Return `true` immediately to avoid extra calls to
`_resolveOptionsFilePath`.