Fixed a problem with race-condition while running TMAlign in parallel