Add missing sync calls in cc-flash-rootfs