Fix tests in ncm-authconfig.

The complicated sleep path is only executed if the restart fails.