Simplify locking for gauges.