Change lcov file write to synchronous

When the function to write lcov runs on the Jenkins server, it never seems to trigger any events on the stream and nothing is ever written.  It works with a synchronous write though.