Use SourceMgr::getMemoryBuffer() in a couple of places

Cleanup only.