libsync: add support to new Sync API
am: 61ab0d74d2

Change-Id: I403d73c6c13cd15c11df1d59172b0cd9f74bf3a7