Add dup function to _socket3