I'm guessing you are using a wait action in the click event..
I would recommend not doing that, but well..
Adding a boolean variable to xyz and setting it to true on clicked and false after the creation of the new object might work..
Then you'd just have to add a condition xyz is not boolean and the player wouldn't be able to click xyz untill the new object is created..