runtime: call fflush before exiting in C test
runtime: call fflush before exiting in C test

Very, very rarely TestVectoredHandlerDontCrashOnLibrary fails because
the C subprocess exits with a 0 status code and no output. This
appears to happen because C does not actually guarantee that stdout
will be flushed on exit and somehow, very rarely, it is not flushed.

Add explicit fflushes to fix this. This reduces the failure rate of
TestVectoredHandlerDontCrashOnLibrary from 0.0013% to 0% in 250,000
iterations.

Fixes #49959.

Change-Id: I892cf49a165ac91134c5da37588a2ab11e1f3f8b
Reviewed-on: https://go-review.googlesource.com/c/go/+/380494
Trust: Austin Clements <7ea35d812706d9213868749011af1ed4fa2f6aa0@google.com>
Run-TryBot: Austin Clements <7ea35d812706d9213868749011af1ed4fa2f6aa0@google.com>
TryBot-Result: Gopher Robot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Bryan Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>

cloudflare/go,nawawi/go,nawawi/go,CAFxX/go,CAFxX/go,golang/go,cloudflare/go,CAFxX/go,golang/go,cloudflare/go,golang/go,cloudflare/go,CAFxX/go,CAFxX/go,cloudflare/go,golang/go,nawawi/go,golang/go,cloudflare/go,nawawi/go,golang/go,nawawi/go,golang/go,CAFxX/go,cloudflare/go,cloudflare/go,CAFxX/go,nawawi/go,nawawi/go,nawawi/go,CAFxX/go,golang/go