deepcopy added in pipeline, breaks anything that worked before that used Rlock etc. like streaming generation
### System Info

transformers==4.29.2
python 3.10


### Who can help?

@gante @Narsil 

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [X] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

1. Pass streamer instance of TextIteratorStreamer(), which includes thread, to TextGenerationPipeline as generator kwargs.
2. See pickle error due to new copy.deepcopy() added.

Due to this change by @gante:

https://github.com/huggingface/transformers/commit/b369e507aaa78103baf5d3f3563952b44a0408a1

This is a fully blocking change for me.  I cannot upgrade to new transformers since this change because this breaks streaming scenario.

### Expected behavior

I don't think copy.deepcopy() is appropriate.  The dictionary itself is passed in as **generate_kwargs and any mutation to the dictionary itself has no effect on the parent dictionary or items passed in.

Additionally, the modifications made to the dictionary in that changed code only involve entries *within* the dictionary, not to mutable items inside the dictionary, so none of those changes would have any effect to any other block of code.

A simple shallow copy is sufficient.

But additionally, I can't see any reason for any copy at all.  Changes to the dictionary locally have no effect anywhere else.
@pseudotensor you closed this without a comment. Is this issue still relevant ?<|||||>Github trying to be too smart with separate issue in another repo<|||||>@pseudotensor 👋 

TIL "The dictionary itself is passed in as **generate_kwargs and any mutation to the dictionary itself has no effect on the parent dictionary or items passed in."

In that case you're right, no copy is needed at all!<|||||>@pseudotensor should be fixed now (closing the issue, but feel free to reopen if you find further related issues)