server: Don't create new handle when DUP_HANDLE_CLOSE_SOURCE is used if possible.