MFV r356365: Sync libarchive with vendor
Relevant vendor changes:
Issue #1302: Plug memory leak on failure of archive_write_client_open()