SERVER-132566ClosedFixed

Fix NetworkInterfaceMock cancellation race that can hang transaction coordinator tests

Unit tests that use `NetworkInterfaceMock` can hang indefinitely when an alarm is canceled. In CI this surfaced as `db_s_shard_server_part3_test` timing out and being killed (BF-45092 / BFG-3474784), with the stack stuck in `SharedStateBase::wait` under `TransactionCoordinator::onCompletion()`. The cause was a missed wakeup in `NetworkInterfaceMock::setAlarm()`. The `onCancel` callback did not resolve the alarm's promise; it only recorded the alarm id in `_canceledAlarms`, leaving resolu

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.0.48.3.16
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkp