adjust lock granularity