hooks/install: Use multiprocess for invoking go-licenses

dev-go/gcp-compute has 3017 files containing main function.
It takes too much time for fetching Go dependencies and
licenses serially (over 30 minutes). Running go-licenses
parallely resolves the issue.

BUG=b/271609417
TEST=presubmit
RELEASE_NOTE=None

Change-Id: Ic36d2efe1fb245a543f7be1ce7e729a458f244fb
Reviewed-on: https://cos-review.googlesource.com/c/third_party/platform/crosutils/+/44430
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
1 file changed