Fix --replace option
Summary: Wait for the other process to unregister before starting the new one.
Test Plan: Reproduced the problem Noah mentioned and addressed it.
Subscribers: ndavis, broulik, plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D22945