Viz crash fix

These commits fix a reproducible crash when stopping playback from viz as screensaver window.  It's very racy as I could only manage to get it to crash consistently on my ION HTPC.  The first commit seems to be enough, but I suspect the risk is still there without the locking introduced in the second commit.  @fritsch had some reservations about adding locking here, so the second commit is an RFC.