Klim Sogn, Thisted Amt