Revert "remove Gemfile.lock"

This reverts commit eca5f0ac6184bc213cdfee39f10281fda298c4b0.
add thread_safe gem
use mri ruby