Put the toys away when tests are done with them.

Use the new locking API correctly!
A little more abstraction.

As we might want to introduce a third TESLA context (per-object), start dealing a little more generally with abstract operations.

Eventually, we might give each tesla_class an op vector or something like that to get rid of all of these switches.
Restore tesla_class_reset (used to be _flush).