Fix tail_f_producer when file is closed or unlinked