replace TODO comment in flush impl
use __sync_synchronize instead of asm sync