Adds configurable semaphore synchronization

RM10494

Updates quark/ipam.py to have configurable sempahore synchronization
after testing proved favorable in multiple environments.
What's the scope of the string in the synchronized class? Might be useful to prepend __name__ to ensure uniqueness.