Fix closure of open file descriptors
Rely on closefrom(2) instead of a loop on close(2) to close all opened file
descriptors. This greatly improve performances.
While here, commit changes to patches generated by make makepatch.
With hat: puppet
PR: 232538
Reported by: vmiller@verisign.com