(FACT-3154) Updates socket parser error handling
(FACT-3154) Updates socket parser error handling

Prior to this commit, the `mac_from` method would implicitly
return a logging object when rescuing an error when it should
return nil.

This commit updates the method to correctly return nil when
rescuing an error, which fixes some failing tests in Ruby >= 3.2.0.

puppetlabs/facter,puppetlabs/facter,puppetlabs/facter