bin/xbps-rindex/sign.c: fix a double free in error path found by clang-analyzer.
xbps_repo_open: switch to archive_read_data_block() and misc tweaks.