tests: use `IPRoute.close()` in test_tc
rtnl: ifinfmsg: flag conversion routines

```
>>> ip = IPRoute()
>>> ip.link('set', index=3, flags=['IFF_UP'], mask=1)
```

Bug-Url: https://github.com/svinota/pyroute2/issues/69