Only create wave sink once.
Rework top block lock/unlock logic when switching modes.

Fixes issue #120.