[lldb] Move PlatformWasm::FindFreeTCPPort to TCPSocket::FindFreePort (NFC) (#248693)
Move the free-port lookup out of the wasm platform so other platforms
can use it.
Broken out from PR #243197 after feedback
Assisted-by: Claude Code using Opus 5.5
Co-authored-by: Michael Georgariou III <georgariou@apple.com>