sync/atomic: add Swap functions
Fixes issue 5722.

R=golang-dev, khr, cshapiro, rsc, r
CC=golang-dev
https://codereview.appspot.com/12670045