text: Title: `spacy.cli.download` doesn't work for transformer model
  Body: <!-- NOTE: For questions or install related issues, please open a Discussion instead. -->
  
  ## How to reproduce the behaviour
  1. Create a new virtual env (e.g. in `pyenv`).
  2. `pip install spacy[transformers]==3.7.2`.
  3. Start python REPL and:
  ```py
  import spacy
  spacy.cli.download('en_core_web_trf')
  nlp = spacy.load('en_core_web_trf')
  ```
  4. At this point you'll get the following error:
  > ValueError: [E002] Can't find factory for 'curated_transformer' for language English (en). This usually happens when spaCy calls `nlp.create_pipe` with a custom component name that's not registered on the current language class. If you're using a Transformer, make sure to install 'spacy-transformers'. If you're using a custom component, make sure you've added the decorator `@Language.component` (for function components) or `@Language.factory` (for class components).
  
  Apparently, `spacy.cli.download` installed `curated-transformers` as a dependency of `en-core-web-trf` but couldn't load it. Everything works fine if you reenter the REPL and try `spacy.load` again.
  
  ## Your Environment
  <!-- Include details of your environment. You can also type `python -m spacy info --markdown` and copy-paste the result here.-->
  - **spaCy version:** 3.7.2
  - **Platform:** macOS-14.0-arm64-arm-64bit
  - **Python version:** 3.9.16
  - **Pipelines:** en_core_web_trf (3.7.2)
  