These kinds of locks are meant for short cafe stops, when you are sat outside watching the bike for example. Or for honest societies. They could also be a surprise second-tier security system and would at least make it more awkward for the scumbag to make off with the bike.
My friend's dad had one on his bike and used to use a carabiner on his keyring to attach the key.