Memorize switch_point configuration to specification

In multi-threaded environment, Model.connection_pool returns different
values between threads since Rails 4.0. Even in that case,
connection_pool.spec.config is shared between threads.