A remedy for an escape from enemies' siege is cut off. "He has walled me about so that I cannot escape." That is, by the besieging army.
"He has put heavy chains on me." This indicates that I (Jeremiah) am besieged just like those persons who are sent to prison and cannot escape. Thus, Psalm 88:8 claims: "I am shut in so that I cannot escape." And Job 13:27 says: "Thou puttest my feet in the stocks, and watchest all my paths."
Source: Commentary on Lamentations