slightly optimize IO::Handle.lines

We do not need to check for the limit when it is Inf. Also use .DEFINITE
instead of .defined, which delegates directly to p6definite.