revert spin lock around fwrite.  code review pointed out that C standards call for it to be thread safe already.