mtapi_cpp: used double-checked locking pattern in Node::GetInstance