zink: compiler bug workaround

The gcc version in the debian CI builder has parser issues around the
label usage here. Rewrite it as a while loop.
1 file changed