Fixed unreleased lock

When one acquires a lock, one must also remember to release it. Still
got errors, but no longer hangs on test completion.
MakeNodeReq test makes mock thread instead of str

shutdown() doesn't test whether a value in the node dict actually *has*
a flag called shutdownFlag before attempting to set it. Unit test now
obliges it.