allow more operations to work on detached streams (closes #23093)

Patch by Martin Panter.

--HG--
branch : 3.4
extra : amend_source : 1e7da2582e7c084d91a1229b1698f39b07bc708c
merge 3.4 (#23093)
asyncio doc: Fix doc of get and put methods of Queue

--HG--
branch : 3.4
Merge 3.4 (asyncio doc)
asyncio doc: update also Queue docstrings

--HG--
branch : 3.4
Merge 3.4 (asyncio)