bug-20979: Fix memory leak in jaln_sub_dgst_wait_thread