libpacman: simply call _pacman_db_rewind before searching the target in _pacman_db_scan (and remove what seems to be a bug in original code).