[PATCH openEuler-22.03-LTS-SP1 2/2] nilfs2: fix potential hang in nilfs_detach_log_writer()