Refactor locks, thread locks now have stats too, add global locks
that still do not have stats but should be used mostly for bootstrap.
Simplify rings, use only thread locks for protection.