Fix WeakSequence circular reference
Fixed a reference cycle which could impact the GC behavior of the
:class:`.WeakSequence` object, currently used within one place in certain
mapper configurations. The issue only affects configuration-time
structures. Pull request courtesy Carson Ip.
Fixes: #5050
Closes: #5051
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5051
Pull-request-sha:
db672f45f4f139722edd2dcc6b0c19892725c9de
Change-Id: I72673a33e655c44b68283ec1a2d7358b904e90ae
(cherry picked from commit
f7a7af70c4f6f07011fa2d521fb1560917896427)