[clang-tools-extra][test] Ensure file is writeable after copying (#157728)
After #157572, the invocation to clang-tidy fails w/ `Could not open
<...>/crlf.cpp.tmp.dir/Inputs/crlf/crlf.cpp for writing` if run in an
environment where the source tree is mounted read-only. This is because
`cat` was creating a new file in a writeable dir, but running `cp`
preserves the readonly file permissions from the source tree.