Fix unprotected accesses to 'hosts' field in test code.
Grab lock before updating successors in checkNewSuccessor. Similarly,
take lock before updating predecessor(s) in ClearPredecessor.

Overall number of races: ~25