zero/reset closed file-descriptors

should fix issues with LinuxDSP plugins (X11 thread) & xjadeo