vt: fix potential race in VT_WAITACTIVE handler