Fix CI by temporarily pinning tensorflow < 2.12.0
As a hotfix for our CI, temporarily pin `tensorflow` upper version:
- In Python 3.10, tensorflow-2.12.0 also installs `jax`

Fix #5663

Until root cause is fixed.