Apparently vexed by bicycle thieves, Adolph Neubauer had a bright idea in 1899: Crank needles up through the seat when the bike isn’t in use “and thus prevent any one from mounting the bicycle without serious injury.”
He got the patent in 1900. Whether it worked is unknown.