add: implement *_compare_and_swap correctly
Merge branch 'no-redis-perfstore3' of https://github.com/capensis/canopsis into no-redis-perfstore3