There are things called safety pins, locking pins or something like that. there are companies that ONLY make these, in 5000 styles. They have a button on the back that releases the ball and allows the pin to be pulled from the hole. They most likely have other styles with different mechanisms for unlocking the pin. I googled locking pin and got over a million hits.
Jon