Fix flaky protected_branches_finder_spec.rb
What does this MR do?
The spec verified that a limited number of branches returned, but due to non-deterministic order, the spec failed sometimes.
If we care only about the number of records returned, what about just verifying the size?