sxsetup: fix --wait returning too early (bb#902)