Utils: simplify segmented lock usage