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

Change-Id: I4bb9422b8bc24f70ff254c9dd18ef188db78f4b9