Firestore: Add 'should_terminate' predicate for clean BiDi shutdown. (#8650)

Closes #7826.
2 files changed