changed gem file thread_safe version