Implement closefrom() to prevent KQUEUE issues.