delphi: Rewrite socket code to use WinSock on Windows

This allows to set TCP_NODELAY properly. This was not possible with the
previously used TTcpClient class.
java: Add missing [] to array return types in documentation
python: Use decicated lock for sequence number instead of the socket lock
ruby: Use decicated mutex for sequence number instead of the socket mutex