Move msgpack dependencies to gemspec, for mri and jruby. Keep singletons thread-safe