"libmedia: ensure mCaptureThread exit within Visualizer destructor""

This reverts commit 3959728aad60816b7d2aad15ad338dd3632f0437.