update thread_safe gem