[autotest] Fix LogindTest with Qt 5.6
Apparently we need to explicitly wait after each lock, otherwise we lose a signal.
I do hope it also works with older Qt, CI system will tell us.
BUG: 360025