fix for thread visibility issue when node discovery is enabled