Fix: wait fd leak for the kernel metadata

Signed-off-by: David Goulet <dgoulet@efficios.com>