asahi: Fix batch writer tracking for empty batches
I think this is what was causing magenta glitches on KDE startup and similar issues.
While debugging I added (again for the 2nd or 3rd time) batch state debugging, so let's make this one official too.
Depends on !26 (merged) which depends on !21 (merged) for silly reasons.