Fix a possible variable shadow in `create_new_client_event`.