test atomic syncronized lock