[RFC patch 05/17] virStorageSourceGetMetadataFromBuf: Refactor cleanup