The deadlock is hypothetical since libcryptsetup applications usualy terminates after error. The deadlock could only emerge in case where single process handles multiple crypt contexts.