SERVER-10808 add __gcov_flush() call on exit

Hi Matt - this is the pull request I talked to you about (allows code  coverage instrumentation stats to flush on exit from mongod, mongos and unit tests). Code review is linked in the SERVER ticket

Mike