Remove unnecessary mutexes.

Fixes #12.