netifd: fix process stdin/stdout/stderr when the pipe fds overlap with standard fds