Repository: deno
Issue: Deno panics when starting TLS connection with denomailer 1.5.1
Labels: bug,ext/net

Deno panics when starting connection to a 587 port with tls enabled, but with tls connection option set to false.

Issue with further specifications at [denomailer](https://github.com/EC-Nordbund/denomailer/issues/55).

To reproduce:

```typescript
import { SMTPClient } from "https://deno.land/x/denomailer@1.5.1/mod.ts";

// ....

const client = new SMTPClient({
  connection: {
    hostname: SMTP_HOSTNAME,
    port: SMTP_PORT,
    tls: false,
    auth: {
      username: SMTP_USERNAME,
      password: SMTP_PASSWORD,
    },
  },
});
```
## Logs

deno --version
```
deno 1.26.2 (release, x86_64-unknown-linux-gnu)
v8 10.7.193.16
typescript 4.8.3
```

Deubg.log output 

```
used resolved config
.debug
┌───────────────┬────────┐
│ (idx)         │ Values │
├───────────────┼────────┤
│ log           │ true   │
│ allowUnsecure │ false  │
│ encodeLB      │ false  │
│ noStartTLS    │ false  │
└───────────────┴────────┘
.connection
┌──────────┬────────────────────────────────────────────┐
│ (idx)    │ Values                                     │
├──────────┼────────────────────────────────────────────┤
│ hostname │ "smtp.artoni.org"                          │
│ port     │ 587                                        │
│ tls      │ false                                      │
│ auth     │ '{"username":"odo","password":"X"}' │
└──────────┴────────────────────────────────────────────┘
.pool
undefined
220 mail.artoni.org ESMTP Postfix (Debian/GNU)
┌───────┬───────────────────┐
│ (idx) │ Values            │
├───────┼───────────────────┤
│     0 │ "EHLO"            │
│     1 │ "smtp.artoni.org" │
└───────┴───────────────────┘
250-mail.artoni.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
┌───────┬────────────┐
│ (idx) │ Values     │
├───────┼────────────┤
│     0 │ "STARTTLS" │
└───────┴────────────┘

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: linux x86_64
Version: 1.26.2
Args: ["deno", "run", "-A", "send_mail.ts", "2"]

thread 'main' panicked at 'Only a single use of this resource should happen: FullDuplexResource { rd: AsyncRefCell<tokio::net::tcp::split_owned::OwnedReadHalf>, wr: AsyncRefCell<tokio::net::tcp::split_owned::OwnedWriteHalf>, cancel_handle: CancelHandle { node: Node { inner: UnsafeCell { .. }, _pin: PhantomPinned } } }', /home/abuild/rpmbuild/BUILD/deno-1.26.2/ext/net/ops_tls.rs:820:6
stack backtrace:
   0:     0x561d985c42a1 - <unknown>
   1:     0x561d975e9cfe - <unknown>
   2:     0x561d9859c0f4 - <unknown>
   3:     0x561d985ab6b6 - <unknown>
   4:     0x561d985ab342 - <unknown>
   5:     0x561d975439b6 - <unknown>
   6:     0x561d985ac00e - <unknown>
   7:     0x561d985c4632 - <unknown>
   8:     0x561d985c45a6 - <unknown>
   9:     0x561d985abc12 - <unknown>
  10:     0x561d96d1b8b2 - <unknown>
  11:     0x561d96d1bb32 - <unknown>
  12:     0x561d97da4f48 - <unknown>
  13:     0x561d97d9567c - <unknown>
  14:     0x561d994dc266 - <unknown>
  15:     0x561d994db666 - <unknown>
  16:     0x561d99375ef8 - <unknown>
```