tail: Fix -f with stdin
Based on a patch from swills@.
MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D31113