smptests/smpatomic08: Fix race conditions