xbps_repo_open: open archive read-only if lock is not set.