Project make readpartial check stop flag

I'll add a comment at the top of the method since it applies to both `IO#select` and `Native#poll`.