base: import sync and sw_sync from i9300-update12