Another way to look at it - is that Loki is the architect of his own downfall.
He works out how to catch himself. There is a theme within the Norse / Germanic literature of being suspicious of clever people. "Too clever by half" is the modern quote.
Whilst stuck in his house of 4 doors Loki has time to think (perhaps too much?) & match wits with the Aesir and ultimately he outwits himself.
Another aspect to consider is the Pandora's box of Knowledge. Once's he's learnt how to create a net Loki can't destroy the evidence.
Within the Runes this is shown within Kenaz / Kaunaz. The Norwegian Rune poem has:
Carbuncle is the affliction of children;
misfortune makes a body pale.
In the modern world we tend to think of a carbuncle as just a boil or spot but the origin of the word is as a red jewel such as a ruby.
This shows the dichotomy of the Heathen worldview around knowledge as both a jewel and an ulcer.
Most dear is fire to the sons of men,
most sweet the sight of the sun;
good is health if one can but keep it,
and to live a life without shame. (Havamal 68)
http://gewessiman.blogspot.co.uk