I've "locked" my bike on couple of occasions by attaching my bike helmet to the bike through front wheel and inside the frame triangle. I still have to keep eye on it all the time, but the "lock" will prevent anyone from simply riding my bike away.
--J