Current master has the same bug.

On Wed, 21 Jul 2021 at 5:14 pm +0200, Lars Ingebrigtsen wrote:

Can you try the same recipe in the current development version of Emacs? There's been some changes to try to guarantee forward progress when there's several processes waiting for output.