add lock when object @@runtime is used to avoid conflict between threads
remove unnecessary gems from module.rb