Fix leak of nat_policy_X section in configuration file, and add code to automatically cleanup orphan sections.