added dynamic fsync control by faux123 via sgt meow. This allows turning off fsync control for better performance. Can cause data loss upon unhealthy systems.