Coarse-grained lock for HLE