[PATCH 5.10 008/317] nilfs2: fix potential hang in nilfs_detach_log_writer()