bug 1092932 detach MediaSource before initiating MDStateMachine shutdown r=bholley

to avoid races between the detach process and decoder task queue shutdown.

--HG--
extra : rebase_source : 91761d9594c53a7ccb974caf4931bcac90533e5a