Add atomic operations to LongGauge and DoubleGauge