truncate files on opening in PosixFdOutputStream and linux variant