Revert "Support the dynlock API"

This reverts commit af1a05678825e30a802ea09383658248d09d2dee.

This seems to cause Travis to segfault every once in a while. I've never
been able to reproduce the instability locally, so I'm just going to
pull this.