improving NodeSelector getInstance thread safety