[PATCH 4.14 32/45] ubifs: Correctly use tnc_next() in search_dh_cookie()