Fix awk(1) asorti() implementation to work when called in a loop.

MFC after:	3 days
X-MFC-to:	stable/10, stable/9