Added Mutexing

Mutexes have been implemented, and a function for removing old nodes has
been created. However, it is throwing run-time errors when attempting to
delete as SocketNode.