Fix wrong usage of boost::object_pool.