pthread_frame: flush all threads on flush, not just the first one