(#22944) Don't execute external facts 19 times

Previously, facter would load every external fact many, many times. For
executable facts, e.g. powershell, this means executing the fact. For
text based facts, it means reading the file, and parsing its output. On
Darwin, it was common for facts to be executed 6 times; on Windows,
19 times.

The problem occurs whenever facter requires a file, e.g. `ec2.rb`, which
references another fact, e.g. `:macaddress` outside the body of any
resolution, and facter has not yet required `macaddress.rb`.

For example, the following will cause all external facts to be loaded:

    if Facter.value(:macaddress)
      Facter.add(:ec2) do
        ...
      end
    end

Note that this is triggered because macaddress comes after ec2.
Similarly, `blockdevices.rb` references the `:kernel` fact outside of
any resolution, so that's another round of external fact evaluation.

This commit keeps adds a boolean flag to ensure we only execute external
facts once.
(#22944) Reload external facts after the collection is flushed

Previously, external facts were not reloaded after
`Facter::Util::Collection#flush` was called, which doesn't match the
semantics of the `flush` method.

This commit ensures we are capable of reloading external facts after
`flush` is called.

Note that this isn't an issue when `Facter.clear` is called, because
that discards the collection entirely, so external facts will be
reloaded if necessary.
Merge branch 'ticket/stable/22944-nineteen-times' into stable

* ticket/stable/22944-nineteen-times:
  (#22944) Reload external facts after the collection is flushed
  (#22944) Don't execute external facts 19 times
Merge branch 'stable'

* stable:
  (#22944) Reload external facts after the collection is flushed
  (#22944) Don't execute external facts 19 times
Merge branch 'master' of https://github.com/puppetlabs/facter