Now using `pthread` mutexes. Builds on `pyrite`.