osx: dmg target

Change-Id: If16da4027d64977cd5e6bd4fbe3b128e76186a43
Merge "osx: dmg target"
client: use syncutil.Gate instead doing it by hand