[PATCH 6.12 143/626] objtool: Fix error handling inconsistencies in check()