generic: fix TIME-WAIT test script