fix duplication of user creation by two simultaneous queries