AbstractReferenceFilter caches current project_ref on RequestStore when active

What does this MR do?

Are there points in the code the reviewer needs to double check?

Store on the RequestStore all the projects referenced on the nodes. Not just those referenced with path_with_namespace

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #22679 (closed)

Merge request reports