sync: improve WaitGroup example by putting the call to Done in a
deferred block. This makes hangs in the waiting code less likely
if a goroutine exits abnormally.

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/7306052

Committer: Shenghou Ma <minux.ma@gmail.com>