I don't know the name for that specific device, but it is a type of ratchet mechanism.
Edit: To further classify this, one might call it a ratcheting freewheel mechanism. The one thing of which I'm unsure how to classify, is that the ratchet mechanism is based on the deflection of the ratchet, rather than a pivoting arm-and-spring style mechanism.