Log an error if lost manager exits with objects still registered
Clean up threadutil.cpp/h. Add AssertCurrentThreadName function.