fs: sync: Allow fsync to be disabled

For extra fs performance at the cost of possible data loss on system crash.

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