I have a number of serious solutions to this - 'problem? - .
First don't ever wash your socks - problem solved (caution there could arise a seperate, but even more 'astringent' problem).
Next tie a string to each pair of socks, and check it frequently to insure it doesn't come loose. (don't plan on 'running' a lot!)
If these don't work get your socks custom manufactured out of cultured human skin, and apply them with crazy glue (bonds skin instantly, according to the warnings).
And lastly DO NOT do what i do!
[when i say foolish things, people tell me to "put a sock in it"; i seem to go through an awful lot of socks (and the problem is further agravated by my first suggestion)]