Improve locality of reference->mutex locking.