jffs2: use mutex_is_locked() in __jffs2_flush_wbuf()