Revamp the selector auto rebuild checker

- Count the number of select() calls made to wait until reaching at the expected dead line, and rebuild selectors if too many select() calls were made.