sequencer: use O_TRUNC to truncate files