fs: add a fsync control

based on cocafe's implementation. switches between enabled, disabled and dynamic fsync

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