text-input-v3: reset the state when we leave the surface
If we don't reset the total commit count when leaving surface, on subsequent done events we send the state with outdated serial, which makes client silently reject the done event for second focused surface.
Edited by Bhushan Shah