atomic operations:

* add *_return APIs
* atomic64_* minor changes
* add test cases