Locks should have a layer of explosive material inside, so firing the powder-actuated tool (PAT) may ignite the explosives and destroy the PAT itself, and it would help too by making some very strong noise so people may hear something is going on.
Are you going to make that explosive sensitive to shocks? Otherwise, how is it going to ignite? And if you would do so, you realize how dangerous that is, right?
You can do whatever you want with your bike but I sure am not carrying something designed to be activated by a strong jolt on my bike when I bike through decaying city streets full of potholes and bumps and other fun stuff like that.