[process] fixed: allow same descriptors for std[out|err|in]

Allow use of same descriptor for std[out|err|in] by deferring
close of the descriptor (after it is being duplicated) till
all three ara duplicated.