pkgtree: add TrimHiddenPackages() method
pkgtree: add TrimHiddenPackages() method

This has general utility, independent of ListPackages() being improved
to avoid unnecessary disk reads in typically-hidden directories.

ibrasho-forks/dep,golang/dep,ibrasho-forks/dep,golang/dep,golang/dep