Despite bikes has been the same many century, it's only portable on the path and inconvenience to other passerby. A real solution should be made foldable, won't taking up public space, lightweight to carry as your bag.
Using frame as a lock is an over-engineering idea.