Atomic fetch and operation functions