Atomic-Level Characterization of the Chain-Flipping Mechanism in Fatty-Acids Biosynthesis