Fix WaitForConnectionAsync when NamedPipeServerStream is disposed (#52825)
* Fix WaitForConnectionAsync when NamedPipeServerStream is disposed
* Align Unix implementation on broken pipe IO exception as on Windows
* Add missing methods to test against ObjectDisposedException
* Apply suggestions from code review
Co-authored-by: Stephen Toub <stoub@microsoft.com>
* Rebase and fix suggestions
* Cancel Accept on dispose
* Improve test
* Apply suggestions from code review
Co-authored-by: Stephen Toub <stoub@microsoft.com>