shared_resource::get() implementation