fixed incorrect mutex unlock in Node::getAgentConnection