test/link_drain.c: fixes

- Fix loop iterators
- close fd

Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed