E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Caught and secured in jail. (See CLOU.)
I nailed him (or it.) I hooked him, I pinned him, meaning I secured him. Isaiah (xxii. 23) says, I will fasten him as a nail in a sure place. However, the idea may still be, I secured him by making him pay down the earnest on The Nail. (See Pay on the Nail, second clause.)