Just curious. Did you need to add a semaphore lock, or is that something you do with all your macros?
Refs: https://wiki.keyboardmaestro.com/action/Semaphore_Lock
For more information, see the wiki Searching the Forum for Answers section.