The flow below caused a dead-lock:
1. A lengthy task A is running on an executor.
2. Executor is destructed, or `Shutdown()` on another thread. The call blocks
waiting for A to complete.
3. Task A executes another task B on the executor. The call blocks forever.
PiperOrigin-RevId: 517495348