This removes use of the SignalClose sigslot. This CL includes thread checks for the callback list and updates some call sites to unsubscribe from events before deletion or detaching from a socket instance. Bug: webrtc:11943 Change-Id: Ib66d39aa5cc795b750c9e3eaa85ed6af8b55b2b5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258561 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36540}