Setting the O_APPEND flag on a terminal file descriptor causes issues with SELinux preventing (at least) tmux from working. Fixes #2979.