Here's my solution to the problem. It does require a rear rack, of course, which, out of vanity, most bikers don't have.
Note the small yellow-blue (yeah, I'm Swedish...) ribbon holding the lock tight when the road is bumpy!
(Click to enlarge!)
Edit:
And before someone asks: NO! The lock does NOT fit anywhere else on the bike. Believe me, I've tried!!!