libpacman: Do not need to pass db arguments when we can simply pass trans object.
libpacman: Also match pkg_local in __pacman_trans_get_trans_pkg.