Auth: skip complex querysets for public projects/versions (#12749)
When a version or project is public, we don't need for any complex
checks, we just allow access to the user.
Similar to
https://github.com/readthedocs/readthedocs-corporate/pull/2090.
I don't expect this to be very noticeable, but let's see.