Don't starting writing to new log file until commit lock is held, otherwise recovery might redundantly apply the last changes.