Merge pull request #18167 from al2o3cr/checkin_connection_leak

Fix connection leak when a thread checks in additional connections.