Fix an issue in atomic-cswap

Signed-off-by: Jithin Jose <jithin.jose@intel.com>