nilfs2: refactor recovery logic routines