upipe_file_sink: use O_TRUNC

use O_TRUNC instead of ftruncate. O_TRUNC is ignored on fifo
and term devices.