[Technical Debt] Preload `all_protected_branches` in the Project model
This is from here: !106532 (comment 1225956364)
We need to update codes that use preload in the association scope all_protected_branches
when the GitLab project moves to Rails 7
/cc @vyaklushin