Misleading OpenMP warning on MacOS when building with Meson

### Describe the bug

Compiling on MacOS with openmp works the old way, see https://scikit-learn.org/dev/developers/advanced_installation.html#macos:
- `brew install libomp`
- ```
  export CC=/usr/bin/clang
  export CXX=/usr/bin/clang++
  export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
  export CFLAGS="$CFLAGS -I/usr/local/opt/libomp/include"
  export CXXFLAGS="$CXXFLAGS -I/usr/local/opt/libomp/include"
  export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp"
  ```
- Build `make in`

With the new meson build system, a warning is raised and scikit-learn is built without openmp:
- same as above, just the last commant is `make dev-meson` instead of `make in`.

### Steps/Code to Reproduce

```
% make dev-meson
```

### Expected Results

No warning and it compiles with openmp enabled.

### Actual Results

```
Run-time dependency OpenMP for c found: NO (tried system)
  ../../sklearn/meson.build:63: WARNING:
                  ***********
                  * WARNING *
                  ***********

  It seems that scikit-learn cannot be built with OpenMP.

  - Make sure you have followed the installation instructions:

      https://scikit-learn.org/dev/developers/advanced_installation.html

  - If your compiler supports OpenMP but you still see this
    message, please submit a bug report at:

      https://github.com/scikit-learn/scikit-learn/issues

  - The build will continue with OpenMP-based parallelism
    disabled. Note however that some estimators will run in
    sequential mode instead of leveraging thread-based
    parallelism.

                      ***
```

### Versions

```shell
System:
    python: 3.11.7 (main, Dec  4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)]
executable: /Users/lorentzen/github/python3_sklearn/bin/python
   machine: macOS-14.4-x86_64-i386-64bit

Python dependencies:
      sklearn: 1.5.dev0
          pip: 24.0
   setuptools: 68.0.0
        numpy: 1.26.0
        scipy: 1.11.3
       Cython: 3.0.9
       pandas: 2.1.1
   matplotlib: 3.8.0
       joblib: 1.3.2
threadpoolctl: 3.2.0

Built with OpenMP: True

threadpoolctl info:
       user_api: openmp
   internal_api: openmp
    num_threads: 8
         prefix: libomp
       filepath: /usr/local/Cellar/libomp/17.0.6/lib/libomp.dylib
        version: None

       user_api: blas
   internal_api: openblas
    num_threads: 4
         prefix: libopenblas
       filepath: /Users/lorentzen/github/python3_sklearn/lib/python3.11/site-packages/numpy/.dylibs/libopenblas64_.0.dylib
        version: 0.3.23.dev
threading_layer: pthreads
   architecture: Haswell

       user_api: blas
   internal_api: openblas
    num_threads: 4
         prefix: libopenblas
       filepath: /Users/lorentzen/github/python3_sklearn/lib/python3.11/site-packages/scipy/.dylibs/libopenblas.0.dylib
        version: 0.3.21.dev
threading_layer: pthreads
   architecture: Haswell
```

COMMENT:
Looking at a recent [Wheels build log](https://github.com/scikit-learn/scikit-learn/actions/runs/8462111572/job/23182955647) it looks like you get the warning "It seems that scikit-learn cannot be built with OpenMP." because meson does not find OpenMP but everything works fine (I guess thanks to the environment variables) in the end, in particular `sklearn.show_versions()` does show that scikit-learn uses OpenMP, maybe the same is happening for you @lorentzenchr?

Version info from build log:
```
  + python -c 'import sklearn; sklearn.show_versions()'
  
  System:
      python: 3.12.2 (v3.12.2:6abddd9f6a, Feb  6 2024, 17:02:06) [Clang 13.0.0 (clang-1300.0.29.30)]
  executable: /private/var/folders/h1/8hndypj13nsbj5pn4xsnv1tm0000gn/T/cibw-run-pw8bz_7d/cp312-macosx_x86_64/venv-test-x86_64/bin/python
     machine: macOS-12.7.3-x86_64-i386-64bit
  
  Python dependencies:
        sklearn: 1.5.dev0
            pip: 24.0
     setuptools: None
          numpy: 1.26.4
          scipy: 1.12.0
         Cython: None
         pandas: 2.2.1
     matplotlib: None
         joblib: 1.3.2
  threadpoolctl: 3.4.0
  
  Built with OpenMP: True
  
  threadpoolctl info:
         user_api: blas
     internal_api: openblas
      num_threads: 4
           prefix: libopenblas
         filepath: /private/var/folders/h1/8hndypj13nsbj5pn4xsnv1tm0000gn/T/cibw-run-pw8bz_7d/cp312-macosx_x86_64/venv-test-x86_64/lib/python3.12/site-packages/numpy/.dylibs/libopenblas64_.0.dylib
          version: 0.3.23.dev
  threading_layer: pthreads
     architecture: Sandybridge
  
         user_api: blas
     internal_api: openblas
      num_threads: 4
           prefix: libopenblas
         filepath: /private/var/folders/h1/8hndypj13nsbj5pn4xsnv1tm0000gn/T/cibw-run-pw8bz_7d/cp312-macosx_x86_64/venv-test-x86_64/lib/python3.12/site-packages/scipy/.dylibs/libopenblas.0.dylib
          version: 0.3.21.dev
  threading_layer: pthreads
     architecture: Sandybridge
  
         user_api: openmp
     internal_api: openmp
      num_threads: 4
           prefix: libomp
         filepath: /private/var/folders/h1/8hndypj13nsbj5pn4xsnv1tm0000gn/T/cibw-run-pw8bz_7d/cp312-macosx_x86_64/venv-test-x86_64/lib/python3.12/site-packages/sklearn/.dylibs/libomp.dylib
          version: None
```

Labels: Bug, Build / CI