Fix some problems with the parallel execution of TMalign