Try atomicModifyIORefCAS for pureset