Bug 993787: Make MediaEngine threadsafe r=ehsan
Bug 993787: Make SineWaveGenerator not refcounted r=ehsan