fs: add fsync control

switches between enabled, disabled and dynamic fsync.

Change-Id: I5d6fc2d00adbdef490c298bef85c823f9b385455
Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>