zip_archive: Allow crc_out to be nullptr in Inflate.

Only compute the crc32 if required. In addition :
- Add unit tests for Inflate that cover this addition.
- Fix an inconsistency in return codes that was revealed
  by this new test.

Bug: 35246701
Test: zip_archive_tests
Test: make; zipalign.

(cherry picked from commit d9e85b14afd5a2ee14bb4df46cf576c5f9c25f24)

Change-Id: I31d7554378f94fc8995f707471d57cb98311e2c2
3 files changed