[PATCH 6.10 082/375] nilfs2: fix state management in error path of log writing function