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