Made inserting thread safe. Closes issue coderre/libpbf#3
Merge branch 'master' of https://github.com/coderdj/libpbf