kernel_module_loader: Set a prop after completing

 * we can use this as a trigger in init rc, for any task
   that depend on kernel modules being loaded

Change-Id: I7623edc0b6dc799e911a087881f76e9642e005ee
(cherry picked from commit 3a59df59ccd95b57da597535040c8231364194e6)
diff --git a/kernel_module_loader.cpp b/kernel_module_loader.cpp
index aadfd93..9ab0153 100644
--- a/kernel_module_loader.cpp
+++ b/kernel_module_loader.cpp
@@ -1,4 +1,5 @@
 #include "kernel_module_loader.hpp"
+#include "common.h"
 
 const std::vector<std::string> kernel_modules_requested = TWFunc::split_string(EXPAND(TW_LOAD_VENDOR_MODULES), ' ', true);
 
@@ -58,6 +59,10 @@
 	if (ven)
 		ven->UnMount(false);
 
+	android::base::SetProperty("twrp.modules.loaded", "true");
+
+	TWFunc::Wait_For_Battery(3s);
+
 	return true;
 }