Thread safety fix for GonzoNet