... connecting grounds any where besides earth creates a ground loop.
It’s not clear what you’re trying to say. A ground loop occurs when there are two or more paths to ground at different potential (voltage). You can have a dozen ground paths and if they’re all at the same potential you’ll have no issue.
In the US, a residential system’s safety ground will be bonded to the service panel’s neutral buss bar, which is also bonded to the electric utility’s neutral.