Use new synchronization helpers to avoid races when deploying with HA

There are a number of possible races when deploying swift for the
first time:

 - when registering the endpoint and creating users in keystone
Merge pull request #222 from vuntz/sync-marks

Use new synchronization helpers to avoid races when deploying with HA