kunit: test: fix uninitialized spinlock in test

The lock in struct test is never initialized. Fix it.

Google-Bug-Id: 170828691
Signed-off-by: David Chiang <davidchiang@google.com>
Change-Id: Ide1615a5edcc370da63e9261869312f59a882c9f
diff --git a/test/test.c b/test/test.c
index baece69..43207b6 100644
--- a/test/test.c
+++ b/test/test.c
@@ -8,6 +8,7 @@
 
 #include <linux/sched.h>
 #include <linux/sched/debug.h>
+#include <linux/spinlock.h>
 #include <test/test.h>
 #include <test/try-catch.h>
 
@@ -111,6 +112,7 @@
 
 int test_init_test(struct test *test, const char *name)
 {
+	spin_lock_init(&test->lock);
 	INIT_LIST_HEAD(&test->resources);
 	INIT_LIST_HEAD(&test->post_conditions);
 	test->name = name;