oops. properly freeing thread-local objects in with-threading=context