gitrepo.check_remote() is expensive, so make it run in parallel.

gitrepo.check_remote() now runs in parallel (as part of
fetch_package()). Unfortunately lambdas cannot be pickled,
so we have to get rid of it.