Get rid of ATOMIC_64 macros
Refactor memblock & sync
Add locks to atomic handlers