Fix waveform concurrency issues. Possible fix for Bug #1383404

* Use const shared pointers for waveforms.
* Move all std::vector sizing operations to the Waveform constructor. No
  vector state is allowed to change after the constructor finishes.
* Clarify comments.
* Remove waveform mutex usage in WOverview variants.
* Use the track's waveform pointer to atomically swap the waveform
  rather than mutating the waveform in place.
* Remove unused code.
The waveform widgets use the waveform and the overviews us the summary. I don't think it matters too much.