yaml::Stream doesn't need to take ownership of the buffer.

In fact, most users were already using the StringRef version.
Update for llvm API change.