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