[libc++] Avoid including <ostream> in <fstream> and <strstream> (#116014)

This reduces the include time of `<fstream>` from ~800ms to ~500ms.

GitOrigin-RevId: 1636580b0a9afb2272d94b125313e4b35e9af2a9
5 files changed