Fix building with PARALLEL_BACKEND=NATIVE_TBB (#26742)
Summary:
Fixing https://github.com/pytorch/pytorch/issues/26721
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26742
Test Plan:
```
export USE_OPENMP=0
export USE_TBB=1
export BLAS=MKL
export MKL_THREADING=TBB
export MKLDNN_THREADING=TBB
export PARALLEL_BACKEND=NATIVE_TBB
export USE_CUDA=0
python setup.py build
```
Reviewed By: dskhudia
Differential Revision: D17586233
Pulled By: ilia-cher
fbshipit-source-id: 8e8befa6aa776b8c2b27bb4b79a3bff33dbcba7e