[PATCH openEuler-22.03-LTS-SP1 2/2] nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors