Merge "Update compat/closefrom.c to upstream ToT."