add atomic sub, and, or, compare_exchange test cases into smpatomic08
smptests/smpatomic08: Fix compare and exchange
smptests/smpatomic08: Simplify or/and test case

Renamed and use common integer variables.
smptests/smpatomic08: Avoid copy and paste