gh-155888: Fix asyncio writelines() hanging on an empty chunk (#155889)