To lock out all instances you can take a more general approach, so when you click on the object, set a global variable to 1. When the editing bit has finished, set the global variable to 0. Then on the initial click object logic add a condition that the global variable must be 0. The change to 1 locks out any more clicks.