[ruby-core:121611] [Ruby Bug#21261] Backport fix for crash in TCPSocket.open(..., nil)