vold: Introduce android::vold::writeStringToFile

Remove static definition of writeStringToFile, and
move it from KeyStorage to Utils

Bug: 71810347
Change-Id: I38bfd27370ac2372e446dc699f518122e73c6877
diff --git a/Utils.h b/Utils.h
index e9b1c32..af4e401 100644
--- a/Utils.h
+++ b/Utils.h
@@ -146,6 +146,7 @@
 
 bool FsyncDirectory(const std::string& dirname);
 
+bool writeStringToFile(const std::string& payload, const std::string& filename);
 }  // namespace vold
 }  // namespace android