I have used similar means when in a pinch. One of my favorites is to use a nicely coiled cable lock that is left locked on a rack(seemingly permanently) and just wrap the coils around the frame/wheel. Looks like it's locked and if done correctly will actually hold up to a decent yank.
Obviously, this is only in a pinch as J.Oxley was in, but it's better than nothing.