MDL-39602 cache: Move the includes for default stores

Putting them inside the function get_default_stores ensures
that they will be included from anywhere that calls get_default_stores.