Coarse-grained lock implemented