Fix race condition in our implementation of the ofx multi-thread suite