With the advent of cordless angle grinders and high capacity batteries, no reasonable lock, or even bike rack, is much of a deterrent. My approach is to own inexpensive bikes. They still get stolen but the impact is lower. I keep my valuables on my person. In addition to situational awareness, I stay flexible about finding a different way to travel.