updated thread_safe gem