atomic: add bson_atomic* helpers.