How can i guarantee mutual exclusion in a script?

We have a DB table with telephone numbers here. A process/script assigns people via an FK. My suspicion now is that processes are taking phone numbers from each other and assigning them to other people in quick succession. How can this be ruled out within a Designer Script?

Best regards,