nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors (CVE-2024-39469) | HOL Guard CVE