only use syncfs if it is available

Fix an issue that Ken ran into, where we always use syncFS on chromeOS, even when it's not available. Probably something that users won't see often, but something he ran into on the Dartium/ChromeOS build.

@dinhviethoa, @keertip