Make some sense out of GraphThread

There are still a _lot_ of things to be changed in OpenMediaPrivate()
(that code is really bad) and some in CloseMediaPrivate(), but at least
I can continue to work on autohiding panels code.