metadata.c: fix build error with undefined struct kref

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>