Third review round:
- disconnect() is now a re-entrant-safe wrapper around _disconnectInternal()
whose future is held in _activeDisconnect for the entire teardown, not just
the native close. connect() and dispose() wait on that instead of
_pendingNativeClose, so a reconnect can no longer open a new port and then
have the tail of the old teardown mark it disconnected.
- dispose() closes on any live handle (flh >= 0) instead of only when
isOpen() reports `open`: flserial keeps a valid slot and a running
SerialThread in the I/O error state, which would otherwise have been
orphaned. A setDTR() failure no longer skips the close.
- _releaseSerialBuffers() takes alreadyFreed: closePort() frees both buffers
but leaves the pointer fields dangling, so after a successful synchronous
close the fields are only cleared, never freed a second time.
Builds: flutter build linux --debug succeeds (after patching the unrelated
glibc >= 2.42 / tinycthread once_flag clash in the flserial checkout).