[PATCH AUTOSEL 5.6 44/79] counter: 104-quad-8: Add lock guards - generic interface