Fix warnings in atomic.h

Change-Id: I0e16492bb849c15b5b10894e9f14bc0a79df71cf
Reviewed-on: http://review.couchbase.org/30432
Reviewed-by: David Liao <david.liao@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>