libpacman: Simplify pmpkg_t::backup generation code, avoid code duplication.