file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable