fs/sync: fix build error and cleanup

Change-Id: Iea7a84010937b2f514380a4977f91ed817c536fc