Change Chan flags to match open() file flags