fix port-unregister (on failed latency measurement)
rework raw-midi drain strategy (workaround for sync devices)
engine-dialog: properly restore previous active state
latency measurement dialog updates:

* distinguish errors: no ports and no engine.
* fix "No measurement results yet" message at successful end
* stop update callback
no more stack smashing, renice debug messages