nilfs2: fix imperfect completion wait in nilfs_wait_on_logs