tryEmitPendingToolCall

Emits a pendingToolCallRef if it exists and then clears it.