Welcome into the world of illegality my friend. Fortunately i have a solution for you.
http://ozzum.com/bicycle-health/
That way you will remain in good standing with the law which is to walk on the sidewalk.
But you can still lock your bike and walk anyway.
http://ozzum.com/locking-bike-security/