tty: Fix deprecation detection logic
tty: Fix deprecation detection logic

When collecting tty records the @id may come in
as external tty entry which has no regular file
record (because it gonna be inherited on the
restore from the command line option).

Thus, make sure that deprecated_ok() is never
called on external ttys.

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

KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote