Use closefrom(2) when available in child_setup

@reedr