tbb: apply patch to fix thread creation under heavy load
tbb: apply patch to fix thread creation under heavy load

TBB has a bug in thread creation which is exposed with usage in mold.
See rui314/mold#410, rui314/mold#600. We apply a patch that has been
upstreamed to TBB at oneapi-src/oneTBB#824 to fix this.

The patch implements a mechanism similar to one used by Go [1], and has
been adopted in the Arch and OpenSUSE TBB packages.

While we're here, let's align the `cmake` invocation with other
formulae, fix references to `python3.10` (#108008), and change the
`-rpath` flag so that it does not require relocation when pouring a
bottle (which should speed bottle pour times up slightly).

[1] https://go-review.googlesource.com/c/go/+/33894/

Closes #108431.

Signed-off-by: Sean Molenaar <2b250e3fea88cfef248b497ad5fc17f7dc435154@users.noreply.github.com>
Signed-off-by: BrewTestBot <8a898ee6867e4f2028e63d2a6319b2224641c06c@users.noreply.github.com>

Homebrew/homebrew-core,chrisfinazzo/homebrew-core,sjackman/homebrew-core,Homebrew/homebrew-core,filcab/homebrew-core,stgraber/homebrew-core,sjackman/homebrew-core,adam-moss/homebrew-core,stgraber/homebrew-core,filcab/homebrew-core,nandub/homebrew-core,nandub/homebrew-core,makigumo/homebrew-core,chrisfinazzo/homebrew-core,nbari/homebrew-core,lemzwerg/homebrew-core,makigumo/homebrew-core,adam-moss/homebrew-core,lemzwerg/homebrew-core,nbari/homebrew-core