Make tool batch counter atomic
Ensure tool batch IDs increment atomically in tool_dispatcher to avoid collisions during concurrent batches.
Acceptance Criteria
Batch IDs are unique under concurrent execution; counter state is updated atomically; no new type errors.