Where I live we are required to have secure housing. I use a pin lock on the rack. I have a 1/8 hole drilled in the shelf. This is in front of the tub and I place a golf tee in the hole.
That's what I use on my racks. I got mine from RBI and they come with little pins in them. Not had an escape yet.