gh-153539: Fix use-after-free in TextIOWrapper.tell() with a reentrant decoder (GH-153540)