Use a buffered channel to avoid blocking goroutines.

All the goroutines will be able to send to the channel and so will
terminate, instead of hanging around.  The channel itself will be
garbage collected after it goes out of scope.