Add gocov support.
Fix race conditions.