Remove pthread code.

Suggested by mpi@