mongodb: add patch for clang failure.

Closes #22696.