Remove unneeded function releaseAll()
Move CuckooLock to its own cpp file
Hide AMR uglyness behind a macro