[libc][NFC] Extract File line reader to __support (#244261)
Move the line-oriented File reader and growable buffer out of pwd into
common __support headers for reuse across database parsers:
* Move DynamicBuffer and ScopedDynamicBuffer into LIBC_NAMESPACE
* Extract ReadLineResult and read_line overloads to File/line_reader.h
* Migrate FlatFileDatabase and its pwd/grp callers to the new headers
Assisted-by: Automated tooling, human reviewed.