A similar trick is for the thief to apply their own lock then come back later. They may even lock up another (scrapper) bike with the same lock to make it look more like an accidental double locking.
MikeF wrote:In other words is there anything that stops superglue gluing?
Yes. You can buy 'debonders' - the police use them when protesters stick themselves to railings etc. An acetone-containing nail varnish remover* would work too.
*Not all nail varnish removers do contain acetone nowadays, due to the popularity of "solvent-free nail varnish remover" which contains ethyl acetate instead of acetone. Still a solvent really, but less nasty.