A small padlock through the chainwheel around the chain, perhaps?

(I'd probably choose a different lock; this is just one I had on my workbench. Hmm. And perhaps orient the lock inside rather than outside. Hmm.)
Note: the rear wheel can still freewheel and the bike can still roll forwards.
VERY cool. THAT's wot om tawkin about!