A safety pin seems like a simple object, but it has one persistent flaw: the clasp can come undone at the wrong moment.