Cleanup freetype data in a thread-safe way