Revert "enable pthread"

This reverts commit d60f5a27c96638b0b4cfad8acf52fe986b25b930.