Atomically create all log files and move them into place. #1482

@michaelcahill Please review this fix for the log read error that Dmitri reported.