Fixes with sync and lock leaks.

There is now one lock per Node, not one for all nodes.
Locks hopefully nolonger 'leak out' when sending events.