The node you are looking for is at Pitches - Preventing natural signs from being printed when the key signature changes.