Or it could be a latch, like in old barn doors or gates or something to hang by.
There are 2 pieces to this locking: one piece ends in a O ring and another ends in a T. One puts the arms of the T through the O ring by turning first and then inserting. And then its turned to make it hold it in O ring. For removing, exactly reverse steps are taken.
-Cat