I try not to be too attached to my stuff. It's only stuff. And as noted above, I don't equip myself with the very best stuff for that reason. Stuff has a way of growing legs. If it should get lost or stolen, I'd begin a different kind of trip. Same with getting sick, having a major mechanical failure, or sustaining an injury--it happens.
And I stay away from public campgrounds for that very reason. There are often public lands around public campgrounds that are perfect for "stealth" or "distributed" camping. I usually sponge-bathe in a public restroom or in a creek late in the day and don't really need a shower every night.
When shopping or touring out of sight of the bike, I tie every pack and helmet strap and bungee cord around something to slow down or discourage a thief.
Once I left my bike surrounded by homeless guys on the steps of the Cleveland Public Library for a half hour or so. Maybe there's a homeless guy code and I sort of looked like I belonged, because nothing was touched.