Fix removal of stream aliases when a file is closed for Lean Prolog
Fix removal of stream aliases when a file is closed for Lean Prolog

LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3