[uniscribe] Fix scratch-buffer accounting