libpacman: Add some missing _pacman_localdb_write_item call.