Fine grained lock