Makes gauge impl value volatile

Make gauge value volatile because one thread reads from it and another writes from it.