gh-135368: Fix mocks on dataclass specs with instance=True
#135421
+34
−2
Merged