Fix hang in libdmtx package. found through daca2.