Merge pull request #1777 from alex/threadsafe-init

Fixes #1776 -- ensure that we only init bindings once per process