Lock abstraction, introduced with a view toward making the JIT thread-safe.