Removed deadlock in MPI task executor.