Adds configurable semaphore synchronization

RM10494

Updates quark/ipam.py to have configurable sempahore synchronization
after testing proved favorable in multiple environments.
Peep dis, son https://github.com/openstack/neutron/blob/master/neutron/openstack/common/lockutils.py#L241