Eliminating special cased root shut down.

A reference to the root object was being kept before, now we clear it so
the GC can shut down the processors properly.
A few cleanups (warnings, printfs).
Reinstating recursive locking.