Use proper SELECT options in User::idFromName() for locking