osc: More efficient locking.