Remove unused pthread_locks
Merge pull request #1071 from dottedmag/cleanups/locks-removal

Remove unused pthread_locks