DNNL: fix build error when DNNL using TBB threading pool (#40699)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/40699
Differential Revision: D22286334
Pulled By: albanD
fbshipit-source-id: 0635a0a5e4bf80d44d90c86945d92e98e26ef480