You can do this very simply. If you have one rack that is only one tub per level then get 2 brackets that you would be able to fit a wood or steel bar through. Put one on the bottom and one on the top of the rack and then the bar or whatever you use would slide into them covering the front making it impossible to pull the tubs out
You can drill through to make a hole to put a bad lock on