Don't leak directory fd in walk_dir()

Signed-off-by: Mark Fasheh <mfasheh@suse.de>