Where the situation involves a defect which might cause the normal locking mechanism to fail (or the mechanism is, itself, defective) use of pins is necessary to provide redundancy or provision for locking.
In other cases, it just makes for a good insurance against unexpected mishaps.