xfree86: Only switch to original VT if it is active.

If the X server is terminated while its VT is not active, it should
not change the current VT.

v2: Query current state in xf86CloseConsole using VT_GETSTATE instead of
    keeping track in xf86VTEnter/xf86VTLeave/etc.
1 job for less-vt-switch in 3 minutes and 26 seconds
Status Job ID Name Coverage
  Test
passed #29507
job

00:03:26