[CHEF-867] Use F_CLOEXEC if we can
[CHEF-867] Use F_CLOEXEC if we can

(cherry picked from commit c30083f59dd2860eebd7ca269f1e36837d6a58e6)

SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef,SUSE-Cloud/chef