Fix "tail -f" hang if log rotation occurs while tailing