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.
Qt does copy-on-write data sharing so it wasn't actually copying the data. But it's faster to use a const reference so why not?