sync: don't call Done when f() panics in WaitGroup.Go
This change is based on
https://github.com/golang/go/issues/76126#issuecomment-
3473417226
by adonovan.
Fixes #76126
Fixes #74702
Change-Id: Ie404d8204be8917fa8a7b414bb6d319238267c83
GitHub-Last-Rev:
b1beddcd725e9168d4d544a9d0322a5a6d8d65b2
GitHub-Pull-Request: golang/go#76172
Reviewed-on: https://go-review.googlesource.com/c/go/+/717760
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>