Adds configurable semaphore synchronization

RM10494

Updates quark/ipam.py to have configurable sempahore synchronization
after testing proved favorable in multiple environments.
Yeah, I considered that route. I ended up copying the definition of the real synchronized driver instead, and that's how they chose to do it. I don't really care either way, honestly. Shall I change it?