Of course it helps to put the mutex in the right place. derp.