This is somewhat a simple fix for 5.18.0, but this really needs
revisiting.
The probelm is that newUserSetData is called N times for various
properties. From the POV of this method, there is no way to no we're on
teh last property. It simply checks for username and realname.
However, the order the N properties are inserted is effectively
undefined.
The two things together don't work.
This patch also blocks for the password.
Ideally it needs to be setData, setData, setData, then some new flush
method.
There's a technical regression that you can no longer create a user account
with no password, but that's arguably a feature.
CCBUG: 416801