[Technical Debt] Change `protected_branches` to `project_protected_branches` of Project

Follow up on !106532 (comment 1224047230):

I have some concerns about how error-prone this is however and how we might use protected_branches instead of all_protected_branches in new code even if we get all of the existing code right.

/cc @dcouture @vyaklushin