all: fix touching of dependency directories
all: fix touching of dependency directories

Adjust the setup script in integration_test.go to better keep
track of what directories are in current use.
Previously, the staticcheck directory was not tracked as used,
causing it to be deleted unnecessarily.

We ensure consistent tracking, but having each depedency setup step
start with a startWork call, and end with a finishWork call.

Change-Id: I4f5d929f323509237f4f44ed8f57d71b8756f031
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/253617
Reviewed-by: Damien Neil <7e091e9a80da888fcd7836fd3c6b7b85f4677c12@google.com>

protocolbuffers/protobuf-go,protocolbuffers/protobuf-go