Revert "マルチスレッド用にmutexを使う"

This reverts commit 1e239811255640600393cac57a23cc82d0ceeb8f.