Linux: (try to) set close-on-exec in open() system call