tty: Lookup for controlling tty iif sid provided
tty: Lookup for controlling tty iif sid provided

This is rather a code tossing for the next patch.

Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

gablg1/criu,AuthenticEshkinKot/criu,tych0/criu,biddyweb/criu,gonkulator/criu,gonkulator/criu,marcosnils/criu,fbocharov/criu,sdgdsffdsfff/criu,eabatalov/criu,ldu4/criu,wtf42/criu,efiop/criu,eabatalov/criu,KKoukiou/criu-remote,gablg1/criu,KKoukiou/criu-remote,efiop/criu,tych0/criu,rentzsch/criu,fbocharov/criu,fbocharov/criu,LK4D4/criu,wtf42/criu,biddyweb/criu,svloyso/criu,wtf42/criu,eabatalov/criu,kawamuray/criu,kawamuray/criu,fbocharov/criu,wtf42/criu,sdgdsffdsfff/criu,sdgdsffdsfff/criu,LK4D4/criu,AuthenticEshkinKot/criu,ldu4/criu,efiop/criu,efiop/criu,rentzsch/criu,marcosnils/criu,svloyso/criu,ldu4/criu,efiop/criu,AuthenticEshkinKot/criu,wtf42/criu,ldu4/criu,AuthenticEshkinKot/criu,sdgdsffdsfff/criu,gablg1/criu,gonkulator/criu,wtf42/criu,LK4D4/criu,gonkulator/criu,rentzsch/criu,eabatalov/criu,kawamuray/criu,gonkulator/criu,eabatalov/criu,tych0/criu,tych0/criu,svloyso/criu,biddyweb/criu,KKoukiou/criu-remote,KKoukiou/criu-remote,LK4D4/criu,biddyweb/criu,gablg1/criu,marcosnils/criu,KKoukiou/criu-remote,marcosnils/criu,ldu4/criu,AuthenticEshkinKot/criu,kawamuray/criu,rentzsch/criu,tych0/criu,gonkulator/criu,kawamuray/criu,fbocharov/criu,sdgdsffdsfff/criu,KKoukiou/criu-remote,biddyweb/criu,marcosnils/criu,tych0/criu,AuthenticEshkinKot/criu,efiop/criu,svloyso/criu,gablg1/criu,gablg1/criu,rentzsch/criu,marcosnils/criu,rentzsch/criu,LK4D4/criu,sdgdsffdsfff/criu,kawamuray/criu,LK4D4/criu,svloyso/criu,svloyso/criu,fbocharov/criu,biddyweb/criu,ldu4/criu,eabatalov/criu